Skip to content

Commit eb4e385

Browse files
committed
all: Fix warnings from clippy::unnecessary_lazy_evaluations
1 parent 5dc4f0b commit eb4e385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/postgres/src/relational/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Display for Method {
4949

5050
impl Method {
5151
fn parse(method: String) -> Self {
52-
method.parse().unwrap_or_else(|()| Method::Unknown(method))
52+
method.parse().unwrap_or(Method::Unknown(method))
5353
}
5454
}
5555

0 commit comments

Comments
 (0)