Skip to content

Commit dc722bf

Browse files
committed
clippy::needless_question_mark
1 parent a75192b commit dc722bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/codec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl<'tcx, D: TyDecoder<'tcx>> RefDecodable<'tcx, D> for [mir::abstract_const::N
385385
impl<'tcx, D: TyDecoder<'tcx>> RefDecodable<'tcx, D> for ty::List<ty::BoundVariableKind> {
386386
fn decode(decoder: &mut D) -> Result<&'tcx Self, D::Error> {
387387
let len = decoder.read_usize()?;
388-
Ok(decoder.tcx().mk_bound_variable_kinds((0..len).map(|_| Decodable::decode(decoder)))?)
388+
decoder.tcx().mk_bound_variable_kinds((0..len).map(|_| Decodable::decode(decoder)))
389389
}
390390
}
391391

0 commit comments

Comments
 (0)