Skip to content

Commit 97565a3

Browse files
committed
clippy: simplify an unwrap-or-default pattern
1 parent 3572442 commit 97565a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl Display for Error {
229229
.as_ref()
230230
.and_then(|locations| locations.iter().next())
231231
.cloned()
232-
.unwrap_or_else(Location::default);
232+
.unwrap_or_default();
233233

234234
write!(f, "{}:{}:{}: {}", path, loc.line, loc.column, self.message)
235235
}

0 commit comments

Comments
 (0)