]> git.lizzy.rs Git - rust.git/commitdiff
Rename
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 28 Jun 2020 20:31:40 +0000 (22:31 +0200)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 28 Jun 2020 20:31:40 +0000 (22:31 +0200)
crates/flycheck/src/lib.rs

index 9335098ff09725b3baf1f7e4a0321ebe0b95e716..0d68fcd4d3b0ed94ca57797be84aa86fadc507f7 100644 (file)
@@ -51,7 +51,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
 pub struct FlycheckHandle {
     // XXX: drop order is significant
     cmd_send: Sender<Restart>,
-    handle: jod_thread::JoinHandle,
+    thread: jod_thread::JoinHandle,
 }
 
 impl FlycheckHandle {
@@ -61,10 +61,10 @@ pub fn spawn(
         workspace_root: PathBuf,
     ) -> FlycheckHandle {
         let (cmd_send, cmd_recv) = unbounded::<Restart>();
-        let handle = jod_thread::spawn(move || {
+        let thread = jod_thread::spawn(move || {
             FlycheckActor::new(sender, config, workspace_root).run(cmd_recv);
         });
-        FlycheckHandle { cmd_send, handle }
+        FlycheckHandle { cmd_send, thread }
     }
 
     /// Schedule a re-start of the cargo check worker.