Skip to content

Commit

Permalink
rustfmt: overflow_delimited_expr = true
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Oct 8, 2022
1 parent a807a8a commit 51c34ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#format_code_in_doc_comments = true

inline_attribute_width = 60
overflow_delimited_expr = true
use_field_init_shorthand = true
use_try_shorthand = true
16 changes: 6 additions & 10 deletions crates/kas-core/src/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,12 @@ pub enum Direction {

impl fmt::Display for Direction {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
write!(
f,
"{}",
match self {
Direction::Right => "Right",
Direction::Down => "Down",
Direction::Left => "Left",
Direction::Up => "Up",
}
)
write!(f, "{}", match self {
Direction::Right => "Right",
Direction::Down => "Down",
Direction::Left => "Left",
Direction::Up => "Up",
})
}
}

Expand Down

0 comments on commit 51c34ec

Please sign in to comment.