From 0ca27974287046ad51f561253c4adcbde146ccce Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 17 Mar 2022 21:23:38 +0800 Subject: [PATCH] fix compilation warning --- nac3core/src/toplevel/builtins.rs | 2 +- nac3standalone/src/basic_symbol_resolver.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3core/src/toplevel/builtins.rs b/nac3core/src/toplevel/builtins.rs index da314735..2d97d612 100644 --- a/nac3core/src/toplevel/builtins.rs +++ b/nac3core/src/toplevel/builtins.rs @@ -105,7 +105,7 @@ pub fn get_builtins(primitives: &mut (PrimitiveStore, Unifier)) -> BuiltinInfo { ("__param2__".into(), int64, true), ]; - let mut top_level_def_list = vec![ + let top_level_def_list = vec![ Arc::new(RwLock::new(TopLevelComposer::make_top_level_class_def( 0, None, diff --git a/nac3standalone/src/basic_symbol_resolver.rs b/nac3standalone/src/basic_symbol_resolver.rs index d0445289..2559b6f5 100644 --- a/nac3standalone/src/basic_symbol_resolver.rs +++ b/nac3standalone/src/basic_symbol_resolver.rs @@ -76,7 +76,7 @@ impl SymbolResolver for Resolver { } } - fn get_exception_id(&self, tyid: usize) -> usize { + fn get_exception_id(&self, _: usize) -> usize { unimplemented!() } }