Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jul 29, 2024
1 parent 92600a4 commit 8c93cda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/core/src/routing/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,11 @@ impl fmt::Debug for Router {
} else {
format!("{prefix}{SYMBOL_TEE}{SYMBOL_RIGHT}{SYMBOL_RIGHT}")
};
let hd = router.goal.as_ref().map(|goal| format!(" -> {}", goal.type_name())).unwrap_or_default();
let hd = router
.goal
.as_ref()
.map(|goal| format!(" -> {}", goal.type_name()))
.unwrap_or_default();
if !others.is_empty() {
writeln!(f, "{cp}{path}[{}]{hd}", others.join(","))?;
} else {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/serde/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl<'de> RequestDeserializer<'de> {
};

let field_name = if let Some(rename) = field.rename {
rename
rename
} else if let Some(serde_rename) = field.serde_rename {
serde_rename
} else if let Some(rename_all) = self.metadata.rename_all {
Expand Down

0 comments on commit 8c93cda

Please sign in to comment.