From f6e8b376d1d21b8b697de5ef1e35a341855202ed Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 6 Dec 2018 21:03:39 +0300 Subject: modernize more --- crates/ra_lsp_server/src/vfs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_lsp_server/src/vfs.rs') diff --git a/crates/ra_lsp_server/src/vfs.rs b/crates/ra_lsp_server/src/vfs.rs index 6e317d854..00ab3e6c3 100644 --- a/crates/ra_lsp_server/src/vfs.rs +++ b/crates/ra_lsp_server/src/vfs.rs @@ -25,9 +25,9 @@ pub fn roots_loader() -> (Worker)>, ThreadWatc |input_receiver, output_sender| { input_receiver .map(|path| { - debug!("loading {} ...", path.as_path().display()); + log::debug!("loading {} ...", path.as_path().display()); let events = load_root(path.as_path()); - debug!("... loaded {}", path.as_path().display()); + log::debug!("... loaded {}", path.as_path().display()); (path, events) }) .for_each(|it| output_sender.send(it)) @@ -41,7 +41,7 @@ fn load_root(path: &Path) -> Vec { let entry = match entry { Ok(entry) => entry, Err(e) => { - warn!("watcher error: {}", e); + log::warn!("watcher error: {}", e); continue; } }; @@ -55,7 +55,7 @@ fn load_root(path: &Path) -> Vec { let text = match fs::read_to_string(path) { Ok(text) => text, Err(e) => { - warn!("watcher error: {}", e); + log::warn!("watcher error: {}", e); continue; } }; -- cgit v1.2.3