mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 10:00:27 +00:00
.
This commit is contained in:
parent
63f509f492
commit
46b4f89c92
28 changed files with 69 additions and 67 deletions
|
@ -12,7 +12,7 @@ use std::marker::PhantomData;
|
|||
|
||||
use crate::{
|
||||
syntax_node::{SyntaxNode, SyntaxNodeChildren, SyntaxToken},
|
||||
SmolStr, SyntaxKind,
|
||||
SyntaxKind,
|
||||
};
|
||||
|
||||
pub use self::{
|
||||
|
@ -54,7 +54,7 @@ pub trait AstToken {
|
|||
|
||||
fn syntax(&self) -> &SyntaxToken;
|
||||
|
||||
fn text(&self) -> &SmolStr {
|
||||
fn text(&self) -> &str {
|
||||
self.syntax().text()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue