Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeicor committed Aug 19, 2023
1 parent 13c3d7c commit 4a9bd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn native_main(sync: bool, event_loop_builder: eframe::EventLoopBuilderHook)
tracing::subscriber::set_global_default(tracing_subscriber::FmtSubscriber::default())
.expect("Failed to set global default subscriber");
// If no arguments are provided, run a GUI interface for configuring the CLI arguments ;)
if Cli::get_args().iter().nth(1).is_none() {
if Cli::get_args().get(1).is_none() {
#[cfg(feature = "klask")]
klask::run_derived::<Cli, _>(klask::Settings::default(), |_app| {
// Ignore me: this block will be skipped the second time (as arguments will be set)
Expand Down
1 change: 1 addition & 0 deletions src/sdf/wasm/wasi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use wasmer::{AsStoreMut, Function, imports};

macro_rules! wasi_func_stub {
($name:ident, $($arg:ident: $arg_type:ty),* > $ret_type:ty) => {
#[allow(clippy::too_many_arguments)]
fn $name($($arg: $arg_type),*) -> $ret_type {
tracing::warn!("WASI function {} (args: {:?}) not implemented, returning 0", stringify!($name), vec![$($arg as i64),*] as Vec<i64>);
0
Expand Down

0 comments on commit 4a9bd12

Please sign in to comment.