Skip to content

Commit fd7df21

Browse files
committed
chore: fix warning when disabling the update check
1 parent e8a6de8 commit fd7df21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/version/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub(crate) use enforce::enforce_version;
1010
use crate::common::UPDATE;
1111
use crate::version::state::{State, Versions};
1212
use semver::Version;
13-
use std::thread;
1413

1514
const VERSION: &str = env!("CARGO_PKG_VERSION");
1615
const NAME: &str = env!("CARGO_PKG_NAME");
@@ -26,7 +25,7 @@ pub fn update_check(skip: bool) {
2625
// We need to spawn this in a dedicated tokio runtime, as otherwise this would block
2726
// the current tokio runtime from existing. There seems to be an issue with where even
2827
// with an aborted spawned task, tokio will wait for it to end indefinitely.
29-
thread::spawn(|| {
28+
std::thread::spawn(|| {
3029
perform_update_check();
3130
});
3231
}

0 commit comments

Comments
 (0)