mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Get rid of Substitution::suffix
This commit is contained in:
parent
b443e5304e
commit
2a83645e1b
2 changed files with 6 additions and 10 deletions
|
@ -79,12 +79,6 @@ impl Substitution {
|
|||
pub fn prefix(&self, n: usize) -> Substitution {
|
||||
Substitution::intern(self.interned()[..std::cmp::min(self.len(&Interner), n)].into())
|
||||
}
|
||||
|
||||
pub fn suffix(&self, n: usize) -> Substitution {
|
||||
Substitution::intern(
|
||||
self.interned()[self.len(&Interner) - std::cmp::min(self.len(&Interner), n)..].into(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/// Return an index of a parameter in the generic type parameter list by it's id.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue