fix clippy needless_return warning

This commit is contained in:
Graham McIntire 2026-02-10 16:15:37 -06:00
parent 55d001d9f8
commit 57ace0297b
No known key found for this signature in database

View file

@ -1403,7 +1403,7 @@ async fn self_update(url: &str, expected_checksum: &str) -> Result<()> {
.args(&args[1..])
.exec();
// exec() only returns on error
return Err(format!("exec() failed: {}", err).into());
Err(format!("exec() failed: {}", err).into())
}
#[cfg(not(unix))]