mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
Running clippy again found two more improvements.
Missed a manual memcpy loop in engine-object-file. CompilerType::enabled() is a Vec<>, so just use is_empty() instead of trying to generically determine whether an Iter is empty.
This commit is contained in:
@@ -80,7 +80,7 @@ impl Run {
|
||||
format!(
|
||||
"failed to run `{}`{}",
|
||||
self.path.display(),
|
||||
if CompilerType::enabled().iter().next().is_none() {
|
||||
if CompilerType::enabled().is_empty() {
|
||||
" (no compilers enabled)"
|
||||
} else {
|
||||
""
|
||||
|
||||
Reference in New Issue
Block a user