From 126563b799eca0127c6f4917df2b2c47c20d99e7 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sat, 25 Feb 2023 17:28:03 +0000 Subject: [PATCH] style: fix unused_variables with legacy-this-file --- --- a/crates/jrsonnet-stdlib/src/lib.rs +++ b/crates/jrsonnet-stdlib/src/lib.rs @@ -244,7 +244,7 @@ settings: Rc>, } impl ContextInitializer { - pub fn new(s: State, resolver: PathResolver) -> Self { + pub fn new(_s: State, resolver: PathResolver) -> Self { let settings = Settings { ext_vars: Default::default(), ext_natives: Default::default(), @@ -256,7 +256,7 @@ Self { #[cfg(not(feature = "legacy-this-file"))] context: { - let mut context = ContextBuilder::with_capacity(s, 1); + let mut context = ContextBuilder::with_capacity(_s, 1); context.bind( "std".into(), Thunk::evaluated(Val::Obj(stdlib_uncached(settings.clone()))), -- gitstuff