We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2ecfc commit 637e656Copy full SHA for 637e656
clippy_lints/src/consts.rs
@@ -488,11 +488,9 @@ pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
488
},
489
ConstValue::Slice { data, start, end } => match result.ty.sty {
490
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
- },
+ ty::Str => String::from_utf8(data.bytes[start..end].to_owned())
+ .ok()
+ .map(Constant::Str),
496
_ => None,
497
498
0 commit comments