Skip to content

Commit e36c186

Browse files
committed
no ref + clone necessary
1 parent c40a7f1 commit e36c186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/mir/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl<'tcx> Const<'tcx> {
8282
},
8383
ConstVal::Integral(Infer(v)) => C_integral(llty, v as u64, false),
8484
ConstVal::Integral(InferSigned(v)) => C_integral(llty, v as u64, true),
85-
ConstVal::Str(ref v) => C_str_slice(ccx, v.clone()),
85+
ConstVal::Str(v) => C_str_slice(ccx, v),
8686
ConstVal::ByteStr(ref v) => consts::addr_of(ccx, C_bytes(ccx, v), 1, "byte_str"),
8787
ConstVal::Struct(did, mut field_values) => {
8888
let repr = adt::represent_type(ccx, ty);

0 commit comments

Comments
 (0)