Browse Source

Fix spin_loop error

See issue [#55002](https://github.com/rust-lang/rust/issues/55002)
Barry 3 years ago
parent
commit
15a0bfea6c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib.rs

+ 2 - 0
src/lib.rs

@@ -4,6 +4,8 @@
 #![deny(unused_must_use, missing_docs)]
 #![allow(clippy::identity_op)]
 #![allow(dead_code)]
+/// cause core::hint::spin_loop need this feature eenabled.
+#![feature(renamed_spin_loop)]
 
 // #[macro_use]
 extern crate log;