aboutsummaryrefslogtreecommitdiff
path: root/src/private/castable_factory
diff options
context:
space:
mode:
Diffstat (limited to 'src/private/castable_factory')
-rw-r--r--src/private/castable_factory/blocking.rs4
-rw-r--r--src/private/castable_factory/threadsafe.rs4
2 files changed, 4 insertions, 4 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
diff --git a/src/private/castable_factory/threadsafe.rs b/src/private/castable_factory/threadsafe.rs
index 871af9f..5b19844 100644
--- a/src/private/castable_factory/threadsafe.rs
+++ b/src/private/castable_factory/threadsafe.rs
@@ -101,12 +101,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