chore: eliminate clippy warns

This commit is contained in:
Shunsuke Shibayama 2023-08-24 23:38:27 +09:00
parent 1b04cbe802
commit 936b6e2f95
26 changed files with 231 additions and 98 deletions

View file

@ -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() {