fix some clippy lints
This commit is contained in:
1 parent
91fea15cdc
commit
356497df4e
3 files changed
+8
-3
No files matched your search
@@ -392,7 +392,12 @@ impl CrateConfig {
|
||||
None => manifest
|
||||
.bin
|
||||
.iter()
|
||||
.find(|b| b.name == manifest.package.as_ref().map(|pkg| pkg.name.clone()))
|
||||
.find(|b| {
|
||||
#[allow(clippy::useless_asref)]
|
||||
let matching_bin =
|
||||
b.name == manifest.package.as_ref().map(|pkg| pkg.name.clone());
|
||||
matching_bin
|
||||
})
|
||||
.or(manifest
|
||||
.bin
|
||||
.iter()
|
||||
|
||||
@@ -11,7 +11,7 @@ use std::{
|
||||
};
|
||||
|
||||
thread_local! {
|
||||
static RUNTIMES: RefCell<Vec<Rc<Runtime>>> = RefCell::new(vec![]);
|
||||
static RUNTIMES: RefCell<Vec<Rc<Runtime>>> = const { RefCell::new(vec![]) };
|
||||
}
|
||||
|
||||
/// A global runtime that is shared across all scopes that provides the async runtime and context API
|
||||
|
||||
@@ -85,7 +85,7 @@ impl<T: 'static> Storage<T> for UnsyncStorage {
|
||||
}
|
||||
|
||||
thread_local! {
|
||||
static UNSYNC_RUNTIME: RefCell<Vec<MemoryLocation<UnsyncStorage>>> = RefCell::new(Vec::new());
|
||||
static UNSYNC_RUNTIME: RefCell<Vec<MemoryLocation<UnsyncStorage>>> = const { RefCell::new(Vec::new()) };
|
||||
}
|
||||
|
||||
impl AnyStorage for UnsyncStorage {
|
||||
|
||||
Reference in new issue
Block a user