Skip to content

Commit 62f7bc6

Browse files
committed
Make clippy happy
1 parent 93fc441 commit 62f7bc6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gix-object/src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,9 @@ pub mod decode {
276276

277277
impl From<winnow::error::ErrMode<ParseError>> for Error {
278278
fn from(v: winnow::error::ErrMode<ParseError>) -> Self {
279-
let err = v.into_inner().expect("we don't have streaming parsers");
280-
Error { inner: err }
279+
Error {
280+
inner: v.into_inner().expect("we don't have streaming parsers"),
281+
}
281282
}
282283
}
283284

@@ -307,8 +308,9 @@ pub mod decode {
307308

308309
impl From<winnow::error::ErrMode<ParseError>> for Error {
309310
fn from(v: winnow::error::ErrMode<ParseError>) -> Self {
310-
let err = v.into_inner().expect("we don't have streaming parsers");
311-
Error { inner: err }
311+
Error {
312+
inner: v.into_inner().expect("we don't have streaming parsers"),
313+
}
312314
}
313315
}
314316

0 commit comments

Comments
 (0)