Skip to content

Commit d0f0a75

Browse files
GearsDatapackslpil
authored andcommitted
Don't use underscore
1 parent fef8350 commit d0f0a75

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler-core/src/javascript/decision.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,16 +1243,16 @@ impl<'generator, 'module, 'a> Variables<'generator, 'module, 'a> {
12431243
// We need to have this vector here so that we don't run into lifetime
12441244
// issues when calling `.as_slice` on the local vectors created when this
12451245
// isn't a UTF-8 string.
1246-
let mut _bytes_vec = Vec::new();
1246+
let bytes_vec;
12471247
let bytes = match encoding {
12481248
StringEncoding::Utf8 => escaped.as_bytes(),
12491249
StringEncoding::Utf16 => {
1250-
_bytes_vec = string_to_utf16_bytes(&escaped, read_action.endianness);
1251-
_bytes_vec.as_slice()
1250+
bytes_vec = string_to_utf16_bytes(&escaped, read_action.endianness);
1251+
bytes_vec.as_slice()
12521252
}
12531253
StringEncoding::Utf32 => {
1254-
_bytes_vec = string_to_utf32_bytes(&escaped, read_action.endianness);
1255-
_bytes_vec.as_slice()
1254+
bytes_vec = string_to_utf32_bytes(&escaped, read_action.endianness);
1255+
bytes_vec.as_slice()
12561256
}
12571257
};
12581258

0 commit comments

Comments
 (0)