chore: remove nightly dysfunctional nightly feature and update deps

This commit is contained in:
Erica Marigold 2023-08-21 19:18:16 +05:30
parent 9f6e9d1873
commit ea132cff11
No known key found for this signature in database
GPG key ID: 23CD97ABBBCC5ED2
3 changed files with 256 additions and 241 deletions

494
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -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 = 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())
}

View file

@ -1,5 +1,4 @@
#![feature(associated_type_bounds)]
#![feature(drain_filter)]
use framework::{setup_server, ServerOptions, Server};