diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-01-16 15:17:28 -0500 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-01-16 15:17:28 -0500 |
commit | b8991d885c7513d83a19cb0b10e92efdfe1c0f23 (patch) | |
tree | 08b2270be7fe663737971b60ae9bab60d2de75a3 /src | |
parent | b2acd4e54dc24a7ba8689ddfad163f8ac4ecbda5 (diff) |
cargo fmt
Diffstat (limited to 'src')
-rw-r--r-- | src/preview/preview_file.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/preview/preview_file.rs b/src/preview/preview_file.rs index 9d270e6..36880e1 100644 --- a/src/preview/preview_file.rs +++ b/src/preview/preview_file.rs @@ -59,10 +59,7 @@ impl Foreground { let ui_context = context.ui_context_ref(); if ui_context.layout.is_empty() { - return Err(io::Error::new( - io::ErrorKind::Other, - "No preview area", - )); + return Err(io::Error::new(io::ErrorKind::Other, "No preview area")); } let layout_rect = &ui_context.layout[ui_context.layout.len() - 1]; |