Skip to content

Commit d65ca3b

Browse files
tottotoseanmonstar
authored andcommitted
refactor: refactor redundant closure
1 parent 8396157 commit d65ca3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ impl TryFromValues for HeaderValue {
8282
where
8383
I: Iterator<Item = &'i HeaderValue>,
8484
{
85-
values.next().cloned().ok_or_else(|| ::Error::invalid())
85+
values.next().cloned().ok_or_else(::Error::invalid)
8686
}
8787
}

0 commit comments

Comments
 (0)