aboutsummaryrefslogtreecommitdiff
path: root/src/private/castable_factory/blocking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/private/castable_factory/blocking.rs')
-rw-r--r--src/private/castable_factory/blocking.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/private/castable_factory/blocking.rs b/src/private/castable_factory/blocking.rs
index 4cfa488..bf0dde8 100644
--- a/src/private/castable_factory/blocking.rs
+++ b/src/private/castable_factory/blocking.rs
@@ -88,12 +88,12 @@ where
let mut args = type_name::<Args>();
if args.len() < 2 {
- return Err(std::fmt::Error::default());
+ return Err(std::fmt::Error);
}
args = args
.get(1..args.len() - 1)
- .map_or_else(|| Err(std::fmt::Error::default()), Ok)?;
+ .map_or_else(|| Err(std::fmt::Error), Ok)?;
if args.ends_with(',') {
args = args