Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 30, 2023
1 parent 48770da commit 57ce977
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/crosstarget-utils/src/wasm/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl ElapsedTimeCounter {
}
}

pub async fn sleep(duration: Duration) -> () {
pub async fn sleep(duration: Duration) {
JsFuture::from(Promise::new(&mut |resolve, _reject| {
set_timeout(&resolve, duration.as_millis() as u32);
}))
Expand All @@ -55,5 +55,5 @@ where
}

fn now() -> f64 {
PERFORMANCE.as_ref().map(|p| p.now()).unwrap_or_else(|| Date::now())
PERFORMANCE.as_ref().map(|p| p.now()).unwrap_or_else(Date::now)
}
1 change: 1 addition & 0 deletions query-engine/core/src/executor/execute_operation.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![cfg_attr(target_arch = "wasm32", allow(unused_variables))]
#![cfg_attr(not(feature = "metrics"), allow(clippy::let_and_return))]

use super::pipeline::QueryPipeline;
use crate::{
Expand Down
2 changes: 1 addition & 1 deletion query-engine/query-engine-wasm/src/wasm/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,6 @@ impl<S: Subscriber> Layer<S> for CallbackLayer {
let mut visitor = JsonVisitor::new(event.metadata().level(), event.metadata().target());
event.record(&mut visitor);

let _ = self.callback.call(&visitor.to_string());
let _ = self.callback.call(visitor.to_string());
}
}

0 comments on commit 57ce977

Please sign in to comment.