From eddb744d9038306d020ac46d12a373508e9d3268 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 28 Jun 2020 22:35:18 +0200 Subject: Naming --- crates/vfs-notify/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/vfs-notify/src') diff --git a/crates/vfs-notify/src/lib.rs b/crates/vfs-notify/src/lib.rs index 25ba8d798..b1ea298ae 100644 --- a/crates/vfs-notify/src/lib.rs +++ b/crates/vfs-notify/src/lib.rs @@ -10,7 +10,7 @@ mod include; use std::convert::{TryFrom, TryInto}; -use crossbeam_channel::{select, unbounded, Receiver}; +use crossbeam_channel::{select, unbounded, Receiver, Sender}; use notify::{RecommendedWatcher, RecursiveMode, Watcher}; use paths::{AbsPath, AbsPathBuf}; use rustc_hash::FxHashSet; @@ -22,8 +22,8 @@ use crate::include::Include; #[derive(Debug)] pub struct NotifyHandle { // Relative order of fields below is significant. - sender: crossbeam_channel::Sender, - _thread: jod_thread::JoinHandle, + sender: Sender, + thread: jod_thread::JoinHandle, } #[derive(Debug)] @@ -37,7 +37,7 @@ impl loader::Handle for NotifyHandle { let actor = NotifyActor::new(sender); let (sender, receiver) = unbounded::(); let thread = jod_thread::spawn(move || actor.run(receiver)); - NotifyHandle { sender, _thread: thread } + NotifyHandle { sender, thread } } fn set_config(&mut self, config: loader::Config) { self.sender.send(Message::Config(config)).unwrap() -- cgit v1.2.3