mirror of
https://github.com/notohh/rustlings.git
synced 2025-07-28 08:00:05 -04:00
style: formatted files with rustfmt
This commit is contained in:
parent
c0e3daacaf
commit
bd48544e25
3 changed files with 7 additions and 16 deletions
src
|
@ -1,6 +1,6 @@
|
|||
use std::env;
|
||||
use regex::Regex;
|
||||
use serde::Deserialize;
|
||||
use std::env;
|
||||
use std::fmt::{self, Display, Formatter};
|
||||
use std::fs::{self, remove_file, File};
|
||||
use std::io::Read;
|
||||
|
@ -132,8 +132,7 @@ path = "{}.rs""#,
|
|||
} else {
|
||||
"Failed to write 📎 Clippy 📎 Cargo.toml file."
|
||||
};
|
||||
fs::write(CLIPPY_CARGO_TOML_PATH, cargo_toml)
|
||||
.expect(cargo_toml_error_msg);
|
||||
fs::write(CLIPPY_CARGO_TOML_PATH, cargo_toml).expect(cargo_toml_error_msg);
|
||||
// To support the ability to run the clipy exercises, build
|
||||
// an executable, in addition to running clippy. With a
|
||||
// compilation failure, this would silently fail. But we expect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue