git.delta.rocks / jrsonnet / refs/commits / cda8521c5b92

difftreelog

test fix gc import

Yaroslav Bolyukin2021-07-04parent: #0031c6e.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/lib.rsdiffbeforeafterboth
491 use crate::{491 use crate::{
492 error::Error::*, native::NativeCallbackHandler, primitive_equals, EvaluationState,492 error::Error::*, native::NativeCallbackHandler, primitive_equals, EvaluationState,
493 };493 };
494 use gc::Gc;494 use jrsonnet_gc::{Finalize, Gc, Trace};
495 use jrsonnet_interner::IStr;495 use jrsonnet_interner::IStr;
496 use jrsonnet_parser::*;496 use jrsonnet_parser::*;
497 use std::{497 use std::{
924924
925 evaluator.with_stdlib();925 evaluator.with_stdlib();
926926
927 #[derive(gc::Trace, gc::Finalize)]927 #[derive(Trace, Finalize)]
928 struct NativeAdd;928 struct NativeAdd;
929 impl NativeCallbackHandler for NativeAdd {929 impl NativeCallbackHandler for NativeAdd {
930 fn call(&self, from: Option<Rc<Path>>, args: &[Val]) -> crate::error::Result<Val> {930 fn call(&self, from: Option<Rc<Path>>, args: &[Val]) -> crate::error::Result<Val> {