syntax: Fix warnings about clippy str_to_string rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-10 00:51:58 +09:00
parent f474bd77be
commit 81c35d1f56
6 changed files with 14 additions and 14 deletions

View file

@ -28,7 +28,7 @@ pub(crate) fn build_tree(
parser::StrStep::Enter { kind } => builder.start_node(kind),
parser::StrStep::Exit => builder.finish_node(),
parser::StrStep::Error { msg, pos } => {
builder.error(msg.to_string(), pos.try_into().unwrap())
builder.error(msg.to_owned(), pos.try_into().unwrap())
}
});