提交 fb8ab18f 编写于 作者: A Agustin Chiappe Berrini

remove unnecessary function

上级 ce1fed7f
......@@ -36,7 +36,7 @@ pub fn from_str(string: &str) -> Ident {
}
pub fn without_first_quote(&self) -> Ident {
Ident { name: self.name.without_first_quote(), ctxt: self.ctxt }
Ident { name: Symbol::from(self.name.as_str().trim_left_matches('\'')), ctxt: self.ctxt }
}
pub fn modern(self) -> Ident {
......@@ -117,10 +117,6 @@ pub fn as_str(self) -> InternedString {
pub fn as_u32(self) -> u32 {
self.0
}
pub fn without_first_quote(&self) -> Symbol {
Symbol::from(self.as_str().trim_left_matches('\''))
}
}
impl<'a> From<&'a str> for Symbol {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册