mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
small fix to make pragmas work
This commit is contained in:
@@ -910,7 +910,8 @@ impl Name {
|
||||
|
||||
pub fn as_str(&self) -> &str {
|
||||
match self {
|
||||
Name::Ident(s) | Name::Quoted(s) => s.as_str(),
|
||||
Name::Ident(s) => s.as_str(),
|
||||
Name::Quoted(s) => &s[1..s.len() - 1],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1370,7 +1370,7 @@ impl ToTokens for Name {
|
||||
s: &mut S,
|
||||
_: &C,
|
||||
) -> Result<(), S::Error> {
|
||||
double_quote(self.as_str(), s)
|
||||
double_quote(self.as_literal(), s)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user