Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Nov 4, 2024
1 parent 8fb5f03 commit 2d47312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/inflight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ mod tests {
.await
}

async fn call(&self, _: (), ctx: ServiceCtx<'_, Self>) -> Result<(), ()> {
async fn call(&self, _: (), _: ServiceCtx<'_, Self>) -> Result<(), ()> {
let fut = sleep(self.dur);
self.cnt.set(true);
self.waker.wake();
Expand Down
4 changes: 2 additions & 2 deletions src/topic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,15 @@ mod tests {
}

fn lvl_normal<T: AsRef<str>>(s: T) -> TopicFilterLevel {
if s.as_ref().contains(|c| c == '+' || c == '#') {
if s.as_ref().contains(['+', '#']) {
panic!("invalid normal level `{}` contains +|#", s.as_ref());
}

TopicFilterLevel::Normal(s.as_ref().into())
}

fn lvl_sys<T: AsRef<str>>(s: T) -> TopicFilterLevel {
if s.as_ref().contains(|c| c == '+' || c == '#') {
if s.as_ref().contains(['+', '#']) {
panic!("invalid normal level `{}` contains +|#", s.as_ref());
}

Expand Down

0 comments on commit 2d47312

Please sign in to comment.