Skip to content

Commit 4828313

Browse files
committed
Obey clippy
Signed-off-by: Heinz N. Gies <[email protected]>
1 parent e09eb0b commit 4828313

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/impls.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ where
8282
{
8383
if let Some(simd_json::Node::Object { len: 1, .. }) = tape.next() {
8484
match tape.next() {
85-
Some(simd_json::Node::String("Ok")) => Ok(Ok(TOk::from_tape(tape)?)),
86-
Some(simd_json::Node::String("Err")) => Ok(Err(TErr::from_tape(tape)?)),
87-
Some(simd_json::Node::String("ok")) => Ok(Ok(TOk::from_tape(tape)?)),
88-
Some(simd_json::Node::String("err")) => Ok(Err(TErr::from_tape(tape)?)),
85+
Some(simd_json::Node::String("Ok" | "ok")) => Ok(Ok(TOk::from_tape(tape)?)),
86+
Some(simd_json::Node::String("Err" | "err")) => Ok(Err(TErr::from_tape(tape)?)),
8987
_ => Err(de::Error::custom("result not `Ok` or `Err`")),
9088
}
9189
} else {

0 commit comments

Comments
 (0)