aboutsummaryrefslogtreecommitdiff
path: root/src/private/castable_factory/blocking.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-08-01 16:51:23 +0200
committerHampusM <hampus@hampusmat.com>2023-08-01 16:51:23 +0200
commitb455c002dc19a9c9ebb0261532bf4434640cc8aa (patch)
treef22299827b86836ce4a4bee85b20e2f02fa4d4a4 /src/private/castable_factory/blocking.rs
parentffad680e061dff1ac2fe30c2cbbb2d1d6e2f3461 (diff)
refactor: remove calls to default on unit structs
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