Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8615bba

Browse files
committed
use 'unwrap_or_default'
1 parent efd2c20 commit 8615bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-expand/src/builtin_fn_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ fn concat_bytes_expand(
449449
match token.kind() {
450450
syntax::SyntaxKind::BYTE => bytes.push(token.text().to_string()),
451451
syntax::SyntaxKind::BYTE_STRING => {
452-
let components = unquote_byte_string(lit).unwrap_or_else(Vec::new);
452+
let components = unquote_byte_string(lit).unwrap_or_default();
453453
components.into_iter().for_each(|x| bytes.push(x.to_string()));
454454
}
455455
_ => {

0 commit comments

Comments
 (0)