apply clippy suggestions

This commit is contained in:
Adrian Wannenmacher committed 2022-12-13 16:19:40 +01:00
1 parent 83f6984b0a
commit 4677a00adc
13 files changed
+18 -22

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ impl<T: Clone> RouterState<T> {
/// Get the `href` for the `target`.
pub fn href(&self, target: &NavigationTarget) -> String {
match resolve_target(&self.name_map, &target) {
match resolve_target(&self.name_map, target) {
Either::Left(Either::Left(i)) => match &self.prefix {
Some(p) => format!("{p}{i}"),
None => i,