Skip to content

Commit d077767

Browse files
da-xlcnr
andauthored
Update src/librustc_typeck/check/op.rs
Co-authored-by: Bastian Kauschke <[email protected]>
1 parent 28e2756 commit d077767

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/op.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
563563
requires ownership of the string on the left";
564564

565565
let string_type = self.tcx.get_diagnostic_item(sym::string_type);
566-
let is_std_string = |ty: Ty<'tcx>| match &ty.ty_adt_def() {
566+
let is_std_string = |ty: Ty<'tcx>| match ty.ty_adt_def() {
567567
Some(ty_def) => Some(ty_def.did) == string_type,
568568
None => false,
569569
};

0 commit comments

Comments
 (0)