mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Fix some warnings
This commit is contained in:
parent
6726d93f65
commit
2bba7f741c
14 changed files with 64 additions and 35 deletions
|
@ -13,9 +13,9 @@ pub fn which_python() -> String {
|
|||
.expect("python not found");
|
||||
let res = String::from_utf8(out.stdout)
|
||||
.unwrap()
|
||||
.replace("\n", "")
|
||||
.replace("\r", "");
|
||||
if res == "" {
|
||||
.replace('\n', "")
|
||||
.replace('\r', "");
|
||||
if res.is_empty() {
|
||||
panic!("python not found");
|
||||
}
|
||||
res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue