فهرست منبع

chore: formatted code

MartinFillon 1 سال پیش
والد
کامیت
de2e5337a0

+ 1 - 4
src/output/tree.rs

@@ -141,10 +141,7 @@ impl TreeTrunk {
 
 
 impl TreeParams {
 impl TreeParams {
     pub fn new(depth: TreeDepth, last: bool) -> Self {
     pub fn new(depth: TreeDepth, last: bool) -> Self {
-        Self {
-            depth,
-            last,
-        }
+        Self { depth, last }
     }
     }
 
 
     pub fn is_at_root(&self) -> bool {
     pub fn is_at_root(&self) -> bool {

+ 1 - 1
tests/gen/long_time_style_custom_non_recent_empty_nix.stderr

@@ -1,2 +1,2 @@
-thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:361:21
+thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:359:21
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

+ 1 - 1
tests/gen/long_time_style_custom_non_recent_none_nix.stderr

@@ -1,2 +1,2 @@
-thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:359:47
+thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:357:47
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

+ 1 - 1
tests/gen/long_time_style_custom_recent_empty_nix.stderr

@@ -1,2 +1,2 @@
-thread 'main' panicked at 'Custom timestamp format for recent files is empty, please supply a chrono format string at the second line.', src/options/view.rs:375:25
+thread 'main' panicked at 'Custom timestamp format for recent files is empty, please supply a chrono format string at the second line.', src/options/view.rs:373:25
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace