Comply to tidy checks

This commit is contained in:
LeSeulArtichaut 2019-12-10 10:39:09 +01:00
parent 29e5f8e9bc
commit 8fb729ccda

View File

@ -375,7 +375,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
(format!("no implementation for `{} << {}", lhs_ty, rhs_ty),
Some("std::ops::Shr"))
},
_ => (format!("binary operation `{}` cannot be applied to type `{}`", op.node.as_str(), lhs_ty), None)
_ => (format!(
"binary operation `{}` cannot be applied to type `{}`",
op.node.as_str(), lhs_ty),
None)
};
let mut err = struct_span_err!(self.tcx.sess, op.span, E0369,
"{}", message.as_str());