mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Use cfg(test) instead of allow(unused)
This commit is contained in:
parent
a3b9aecc9b
commit
464a00814c
@ -18,7 +18,7 @@ pub(crate) struct SubtreeTokenSource<'a> {
|
||||
|
||||
impl<'a> SubtreeTokenSource<'a> {
|
||||
// Helper function used in test
|
||||
#[allow(unused)]
|
||||
#[cfg(test)]
|
||||
pub fn text(&self) -> SmolStr {
|
||||
match self.get(self.curr.1) {
|
||||
Some(tt) => tt.text,
|
||||
|
Loading…
Reference in New Issue
Block a user