Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Feb 16, 2025
1 parent cdc25da commit f5a1067
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion router/src/matching/any_choose_view.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::ChooseView;
use futures::FutureExt;
use std::{any::Any, future::Future, pin::Pin};
use std::{future::Future, pin::Pin};
use tachys::{erased::Erased, view::any_view::AnyView};

/// A type-erased [`ChooseView`].
Expand Down
4 changes: 1 addition & 3 deletions router/src/matching/nested/any_nested_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ where
value.as_id()
};

fn as_matched<T: MatchInterface + 'static>(
value: &dyn Any,
) -> &str {
fn as_matched<T: MatchInterface + 'static>(value: &dyn Any) -> &str {
let value = value
.downcast_ref::<T>()
.expect("AnyNestedMatch::as_matched couldn't downcast");
Expand Down
2 changes: 1 addition & 1 deletion router/src/matching/nested/any_nested_route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{
matching::nested::any_nested_match::{AnyNestedMatch, IntoAnyNestedMatch},
GeneratedRouteData, MatchNestedRoutes, RouteMatchId,
};
use std::{any::Any, fmt::Debug};
use std::fmt::Debug;
use tachys::{erased::Erased, prelude::IntoErased};

/// A type-erased container for any [`MatchNestedRoutes`].
Expand Down

0 comments on commit f5a1067

Please sign in to comment.