From 6937bcb67d825938d862cd1792af02e00e1d1a06 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 24 Jun 2020 16:58:49 +0200 Subject: Less error-prone naming --- crates/vfs/src/loader.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/vfs') diff --git a/crates/vfs/src/loader.rs b/crates/vfs/src/loader.rs index 052803dd9..6de2e5b3f 100644 --- a/crates/vfs/src/loader.rs +++ b/crates/vfs/src/loader.rs @@ -16,7 +16,7 @@ pub struct Config { } pub enum Message { - Progress { n_entries_total: usize, n_entries_done: usize }, + Progress { n_total: usize, n_done: usize }, Loaded { files: Vec<(AbsPathBuf, Option>)> }, } @@ -56,10 +56,10 @@ impl fmt::Debug for Message { Message::Loaded { files } => { f.debug_struct("Loaded").field("n_files", &files.len()).finish() } - Message::Progress { n_entries_total, n_entries_done } => f + Message::Progress { n_total, n_done } => f .debug_struct("Progress") - .field("n_entries_total", n_entries_total) - .field("n_entries_done", n_entries_done) + .field("n_total", n_total) + .field("n_done", n_done) .finish(), } } -- cgit v1.2.3