We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd2c20 commit 8615bbaCopy full SHA for 8615bba
crates/hir-expand/src/builtin_fn_macro.rs
@@ -449,7 +449,7 @@ fn concat_bytes_expand(
449
match token.kind() {
450
syntax::SyntaxKind::BYTE => bytes.push(token.text().to_string()),
451
syntax::SyntaxKind::BYTE_STRING => {
452
- let components = unquote_byte_string(lit).unwrap_or_else(Vec::new);
+ let components = unquote_byte_string(lit).unwrap_or_default();
453
components.into_iter().for_each(|x| bytes.push(x.to_string()));
454
}
455
_ => {
0 commit comments