Remove unnecessary AsRef<str>.

This commit is contained in:
Stephen Chung
2021-07-10 10:11:14 +08:00
parent d517a0219b
commit 4d25fd0192
5 changed files with 15 additions and 14 deletions

View File

@@ -209,7 +209,7 @@ fn main() {
.enumerate()
.for_each(|(i, (name, constant, value))| {
#[cfg(not(feature = "no_closure"))]
let value_is_shared = if value.is_shared() { " (shared" } else { "" };
let value_is_shared = if value.is_shared() { " (shared)" } else { "" };
#[cfg(feature = "no_closure")]
let value_is_shared = "";