Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Jun 23, 2024
1 parent 8502df9 commit 0850eaf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions viz-core/tests/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async fn handler() -> Result<()> {
type Output = Result<I>;

async fn call(&self, i: I) -> Self::Output {
Ok(i)
Ok::<I, _>(i)
}
}

Expand Down Expand Up @@ -235,7 +235,9 @@ async fn handler() -> Result<()> {
)
.catch_unwind(|_: Box<dyn std::any::Any + Send>| async move { panic!("Custom Error 2") });

assert!(Handler::call(&aa, Request::new(Body::Empty)).await.is_ok());
#[allow(dependency_on_unit_never_type_fallback)]
let resp: Result<Response> = aa.call(Request::new(Body::Empty)).await;
assert!(resp.is_ok());

let th = MyAround {
name: String::new(),
Expand Down

0 comments on commit 0850eaf

Please sign in to comment.