From 257dd6765044c1fbfc4488b8fadc73cf967b87fa Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Fri, 10 May 2024 15:51:26 +0100 Subject: [PATCH] Fixed formatting --- helix-term/src/commands/typed.rs | 4 +++- helix-term/src/ui/statusline.rs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 2d6b80597..e8ccaa543 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2497,7 +2497,9 @@ fn set_max_width( return Ok(()); } - let Some(width) = args.first() else { bail!(":set-max-width takes one argument") }; + let Some(width) = args.first() else { + bail!(":set-max-width takes one argument") + }; let width = width.parse()?; cx.editor.tree.max_width = width; cx.editor.tree.recalculate(); diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index f9b556a93..6eeb27392 100644 --- a/helix-term/src/ui/statusline.rs +++ b/helix-term/src/ui/statusline.rs @@ -535,7 +535,8 @@ where fn render_zoom(context: &mut RenderContext, write: F) where - F: Fn(&mut RenderContext, String, Option