Skip to content

Commit

Permalink
refactor: replace string reference with as_str()
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Sep 8, 2023
1 parent c3369ed commit 4730515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assembly/src/tokens/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl<'a> Token<'a> {
0 => unreachable!(),
1 => Err(ParsingError::missing_param(
self,
&format!("{invocation_token}.<procedure_name>").to_string(),
format!("{invocation_token}.<procedure_name>").as_str(),
)),
2 => InvocationTarget::parse(self.parts[1], self),
_ => Err(ParsingError::extra_param(self)),
Expand Down

0 comments on commit 4730515

Please sign in to comment.