mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
Fix warns
This commit is contained in:
parent
0019147007
commit
44781cb030
19 changed files with 96 additions and 99 deletions
|
@ -618,7 +618,7 @@ USAGE:
|
|||
}
|
||||
_ => {
|
||||
let path = PathBuf::from_str(&arg[..])
|
||||
.unwrap_or_else(|_| panic!("invalid file path: {}", arg));
|
||||
.unwrap_or_else(|_| panic!("invalid file path: {arg}"));
|
||||
let path = normalize_path(path);
|
||||
cfg.input = Input::File(path);
|
||||
if let Some("--") = args.next().as_ref().map(|s| &s[..]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue