Skip to content

Commit

Permalink
Fix some Clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Feb 22, 2025
1 parent 08bff9d commit 47707a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rt/src/local/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl RuntimeInternals {
self.set_err(worker::Error::ProcessInterrupted);
}
Ok(()) | Err(SendError) => {}
};
}

trace::finish_rt(
self.trace_log.borrow_mut().as_mut(),
Expand Down
2 changes: 1 addition & 1 deletion rt/src/shared/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl RuntimeSetup {
trace_log: Option<Arc<trace::SharedLog>>,
) -> RuntimeInternals {
// Needed by `RuntimeInternals::wake_workers`.
debug_assert!(worker_sqs.len() >= 1);
debug_assert!(!worker_sqs.is_empty());
let sq = self.ring.submission_queue().clone();
RuntimeInternals {
worker_sqs,
Expand Down
4 changes: 2 additions & 2 deletions rt/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ impl<L, R> TaggedPointer<L, R> {
/// Returns:
/// * `None` if `this` is `None`, `this` is unchanged.
/// * `Some(Ok(..))` if the pointer is `Some` and points to a process,
/// `this` will be `None`.
/// `this` will be `None`.
/// * `Some(Err(..))` if the pointer is `Some` and points to a branch,
/// `this` is unchanged.
/// `this` is unchanged.
pub(crate) fn take_left<'a>(
this: &'a mut Option<TaggedPointer<L, R>>,
) -> Option<Result<Pin<Box<L>>, Pin<&'a mut R>>> {
Expand Down

0 comments on commit 47707a1

Please sign in to comment.