Remove unnecessary sigils around Symbol::as_str()
calls.
This commit is contained in:
parent
8cddcd39ba
commit
056d48a2c9
104 changed files with 189 additions and 192 deletions
|
@ -35,12 +35,12 @@ impl LitKind {
|
|||
LitKind::Bool(symbol == kw::True)
|
||||
}
|
||||
token::Byte => {
|
||||
return unescape_byte(&symbol.as_str())
|
||||
return unescape_byte(symbol.as_str())
|
||||
.map(LitKind::Byte)
|
||||
.map_err(|_| LitError::LexerError);
|
||||
}
|
||||
token::Char => {
|
||||
return unescape_char(&symbol.as_str())
|
||||
return unescape_char(symbol.as_str())
|
||||
.map(LitKind::Char)
|
||||
.map_err(|_| LitError::LexerError);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue