fix: upgrade to Rust 1.77.0
This commit is contained in:
parent
07463db8eb
commit
bf3d8b595e
|
@ -42,7 +42,7 @@
|
|||
|
||||
rustStable = (import fenix {inherit pkgs;}).fromToolchainFile {
|
||||
file = ./rust-toolchain.toml;
|
||||
sha256 = "sha256-e4mlaJehWBymYxJGgnbuCObVlqMlQSilZ8FljG9zPHY=";
|
||||
sha256 = "sha256-+syqAd2kX8KVa8/U2gz3blIQTTsYYt3U63xBWaGOSc8=";
|
||||
};
|
||||
|
||||
craneLib = (crane.mkLib pkgs).overrideToolchain rustStable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[toolchain]
|
||||
channel = "1.76.0"
|
||||
channel = "1.77.0"
|
||||
components = ["clippy", "rustfmt", "rust-src"]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
profile = "minimal"
|
||||
|
|
|
@ -41,7 +41,7 @@ fn main() -> Result<()> {
|
|||
let write_file = File::create(val).unwrap();
|
||||
let mut writer = BufWriter::new(&write_file);
|
||||
match write!(&mut writer, "{contents}") {
|
||||
Ok(_) => {}
|
||||
Ok(()) => {}
|
||||
Err(e) => eprintln!("{e}"),
|
||||
};
|
||||
} else {
|
||||
|
@ -55,8 +55,7 @@ fn parse_sources_config_file(filepath: &str) -> HashMap<String, Source> {
|
|||
if let Ok(file) = File::open(filepath) {
|
||||
BufReader::new(file)
|
||||
.lines()
|
||||
.filter(std::result::Result::is_ok)
|
||||
.map(std::result::Result::unwrap)
|
||||
.map_while(Result::ok)
|
||||
.for_each(|line| {
|
||||
let vec: Vec<&str> = line.split('|').collect();
|
||||
list.insert(
|
||||
|
|
Loading…
Reference in New Issue