mirror of
https://github.com/0x5eal/sealz.git
synced 2024-12-12 12:50:36 +00:00
chore: remove nightly dysfunctional nightly feature and update deps
This commit is contained in:
parent
9f6e9d1873
commit
ea132cff11
3 changed files with 256 additions and 241 deletions
494
Cargo.lock
generated
494
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -27,7 +27,7 @@ fn get_random_seal(seal_type: String) -> std::result::Result<String, std::io::Er
|
||||||
seals_vec.push(seal?.path().into_os_string().into_string().unwrap());
|
seals_vec.push(seal?.path().into_os_string().into_string().unwrap());
|
||||||
}
|
}
|
||||||
|
|
||||||
seals_vec = seals_vec.drain_filter(|v| v.contains(&seal_type)).collect();
|
seals_vec = seals_vec.into_iter().filter(|v| v.contains(&seal_type)).collect();
|
||||||
|
|
||||||
Ok((&seals_vec[rand::thread_rng().gen_range(0..seals_vec.len())]).clone())
|
Ok((&seals_vec[rand::thread_rng().gen_range(0..seals_vec.len())]).clone())
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#![feature(associated_type_bounds)]
|
#![feature(associated_type_bounds)]
|
||||||
#![feature(drain_filter)]
|
|
||||||
|
|
||||||
use framework::{setup_server, ServerOptions, Server};
|
use framework::{setup_server, ServerOptions, Server};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue