From 6fb2d2679dc63ca34be0d02efb543c3e0b49cb74 Mon Sep 17 00:00:00 2001 From: BenoƮt CORTIER Date: Tue, 15 Jun 2021 00:29:03 -0400 Subject: Use `_impl` suffix instead of `_` prefix Helpers / internal implementations where using the `_` prefix. However, this prefix also suppress unused warnings. I suggest we use the `_impl` suffix instead. --- helix-term/src/ui/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src/ui') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 838684ba..4b4b9fb2 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -564,7 +564,7 @@ impl EditorView { } _ => { // set the count - cxt._count = cxt.editor.count.take(); + cxt.count = cxt.editor.count.take(); // TODO: edge case: 0j -> reset to 1 // if this fails, count was Some(0) // debug_assert!(cxt.count != 0); @@ -612,7 +612,7 @@ impl Component for EditorView { let mut cxt = commands::Context { register: helix_view::RegisterSelection::default(), editor: &mut cx.editor, - _count: None, + count: None, callback: None, on_next_key_callback: None, callbacks: cx.callbacks, -- cgit v1.2.3-70-g09d2