Skip to content

Commit 637e656

Browse files
committed
Rustfmt
1 parent fd2ecfc commit 637e656

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

clippy_lints/src/consts.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,9 @@ pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
488488
},
489489
ConstValue::Slice { data, start, end } => match result.ty.sty {
490490
ty::Ref(_, tam, _) => match tam.sty {
491-
ty::Str => {
492-
String::from_utf8(data.bytes[start..end].to_owned())
493-
.ok()
494-
.map(Constant::Str)
495-
},
491+
ty::Str => String::from_utf8(data.bytes[start..end].to_owned())
492+
.ok()
493+
.map(Constant::Str),
496494
_ => None,
497495
},
498496
_ => None,

0 commit comments

Comments
 (0)