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