diff options
author | HampusM <hampus@hampusmat.com> | 2023-01-12 19:55:49 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-01-12 19:55:49 +0100 |
commit | b6f2f52765f35f9f6e76d2dc23404cf35eb97908 (patch) | |
tree | ce52046ffd3ef0394b734a2642effcbd85434732 /src | |
parent | 3ddcc51a4b71920c68424e467788edd3ac68afa6 (diff) |
refactor: fix Clippy lints
Diffstat (limited to 'src')
-rw-r--r-- | src/errors/async_di_container.rs | 2 | ||||
-rw-r--r-- | src/private/castable_factory/blocking.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/errors/async_di_container.rs b/src/errors/async_di_container.rs index 1984521..f17f8b3 100644 --- a/src/errors/async_di_container.rs +++ b/src/errors/async_di_container.rs @@ -38,7 +38,7 @@ pub enum AsyncDIContainerError /// 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 { diff --git a/src/private/castable_factory/blocking.rs b/src/private/castable_factory/blocking.rs index abc3e26..4cfa488 100644 --- a/src/private/castable_factory/blocking.rs +++ b/src/private/castable_factory/blocking.rs @@ -103,7 +103,7 @@ where let ret = type_name::<TransientPtr<ReturnInterface>>(); - formatter.write_fmt(format_args!("CastableFactory ({}) -> {}", args, ret)) + formatter.write_fmt(format_args!("CastableFactory ({args}) -> {ret}")) } } |