From 3ef1342b7b0f7acf62277ec8a8d842e72be2dbb7 Mon Sep 17 00:00:00 2001 From: ItsEthra <107059409+ItsEthra@users.noreply.github.com> Date: Wed, 20 Sep 2023 08:37:32 +0300 Subject: [PATCH] cargo fmt --- helix-view/src/editor.rs | 2 +- helix-view/src/register.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 8eacd05fa..bfb3262e6 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -802,7 +802,7 @@ pub struct WhitespaceCharacters { impl Default for WhitespaceCharacters { fn default() -> Self { Self { - space: '·', // U+00B7 + space: '·', // U+00B7 nbsp: '⍽', // U+237D nnbsp: '␣', // U+2423 tab: '→', // U+2192 diff --git a/helix-view/src/register.rs b/helix-view/src/register.rs index 5592c6afd..1e6680150 100644 --- a/helix-view/src/register.rs +++ b/helix-view/src/register.rs @@ -233,7 +233,9 @@ fn read_from_clipboard<'a>( // If we're pasting the same values that we just yanked, re-use // the saved values. This allows pasting multiple selections // even when yanked to a clipboard. - let Some(values) = saved_values else { return RegisterValues::new(iter::once(contents.into())) }; + let Some(values) = saved_values else { + return RegisterValues::new(iter::once(contents.into())); + }; if contents_are_saved(values, &contents) { RegisterValues::new(values.iter().map(Cow::from).rev())