mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-28 06:08:01 +00:00
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user