From 8bcb33187c3962b91f999dffe6136e5f22f48ba4 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 7 Nov 2022 21:14:19 +0100 Subject: refactor: fix some Clippy lints regarding format!() --- src/errors/di_container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/errors/di_container.rs b/src/errors/di_container.rs index ab1433d..311917a 100644 --- a/src/errors/di_container.rs +++ b/src/errors/di_container.rs @@ -38,7 +38,7 @@ pub enum DIContainerError /// No binding exists for a interface (and optionally a name). #[error( "No binding exists for interface '{interface}' {}", - .name.map_or_else(String::new, |name| format!("with name '{}'", name)) + .name.map_or_else(String::new, |name| format!("with name '{name}'")) )] BindingNotFound { -- cgit v1.2.3-18-g5258