diff --git a/.rustfmt.toml b/.rustfmt.toml index 69a011967..da3cc14f0 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -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 diff --git a/crates/kas-core/src/dir.rs b/crates/kas-core/src/dir.rs index ed43d9b00..5cf50cc2c 100644 --- a/crates/kas-core/src/dir.rs +++ b/crates/kas-core/src/dir.rs @@ -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", + }) } }