aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros/src/declare_interface_args.rs2
-rw-r--r--macros/src/injectable/macro_args.rs2
-rw-r--r--src/errors/di_container.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/macros/src/declare_interface_args.rs b/macros/src/declare_interface_args.rs
index 1641e38..529a114 100644
--- a/macros/src/declare_interface_args.rs
+++ b/macros/src/declare_interface_args.rs
@@ -47,7 +47,7 @@ impl Parse for DeclareInterfaceArgs
.collect::<Vec<_>>();
if let Some(dupe_flag_name) = flag_names.iter().find_duplicate() {
- return Err(input.error(format!("Duplicate flag '{}'", dupe_flag_name)));
+ return Err(input.error(format!("Duplicate flag '{dupe_flag_name}'")));
}
flags
diff --git a/macros/src/injectable/macro_args.rs b/macros/src/injectable/macro_args.rs
index 6dd683b..0692b99 100644
--- a/macros/src/injectable/macro_args.rs
+++ b/macros/src/injectable/macro_args.rs
@@ -68,7 +68,7 @@ impl Parse for InjectableMacroArgs
.collect::<Vec<_>>();
if let Some(dupe_flag_name) = flag_names.iter().find_duplicate() {
- return Err(input.error(format!("Duplicate flag '{}'", dupe_flag_name)));
+ return Err(input.error(format!("Duplicate flag '{dupe_flag_name}'")));
}
Ok(Self { interface, flags })
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
{