Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-04-26 10:39:56 +02:00
parent a85d1ef333
commit 44ae9e77d5
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ mod tests {
let p = (new - old) / new * 100.0;
format!("({p}% change from {old} bytes)")
})
.unwrap_or_else(String::new);
.unwrap_or_default();
println!("{name}: {bytes} bytes {change}");
}
@@ -28,11 +28,10 @@ where
.original
.take()
.ok_or_else(|| anyhow::anyhow!("{} Verbatim literal is missing", call.location))?;
match identifier.as_str() {
_ => anyhow::bail!(
"{} Found unknown internal function `{}`",
call.location,
identifier
),
}
anyhow::bail!(
"{} Found unknown internal function `{}`",
call.location,
identifier
)
}