mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
chore: eliminate clippy warns
This commit is contained in:
parent
1b04cbe802
commit
936b6e2f95
26 changed files with 231 additions and 98 deletions
|
@ -562,7 +562,10 @@ pub fn opt_which_python() -> Result<String, String> {
|
|||
return Err(format!("{}: {python} not found", fn_name_full!()));
|
||||
};
|
||||
let Ok(res) = String::from_utf8(out.stdout) else {
|
||||
return Err(format!("{}: failed to commnunicate with Python", fn_name_full!()));
|
||||
return Err(format!(
|
||||
"{}: failed to commnunicate with Python",
|
||||
fn_name_full!()
|
||||
));
|
||||
};
|
||||
let res = res.split('\n').next().unwrap_or("").replace('\r', "");
|
||||
if res.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue