internal: remove dead code

This commit is contained in:
Aleksey Kladov 2021-09-15 21:22:06 +03:00
parent 726a2aa211
commit 73b0f9dc04
10 changed files with 10 additions and 43 deletions

View file

@ -18,7 +18,7 @@ use walkdir::WalkDir;
pub struct NotifyHandle {
// Relative order of fields below is significant.
sender: Sender<Message>,
thread: jod_thread::JoinHandle,
_thread: jod_thread::JoinHandle,
}
#[derive(Debug)]
@ -35,7 +35,7 @@ impl loader::Handle for NotifyHandle {
.name("VfsLoader".to_owned())
.spawn(move || actor.run(receiver))
.expect("failed to spawn thread");
NotifyHandle { sender, thread }
NotifyHandle { sender, _thread: thread }
}
fn set_config(&mut self, config: loader::Config) {
self.sender.send(Message::Config(config)).unwrap()