mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge #9624
9624: minor: Fix `AbsPath::ends_with` r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
024bda665a
@ -187,7 +187,7 @@ impl AbsPath {
|
|||||||
self.0.starts_with(&base.0)
|
self.0.starts_with(&base.0)
|
||||||
}
|
}
|
||||||
pub fn ends_with(&self, suffix: &RelPath) -> bool {
|
pub fn ends_with(&self, suffix: &RelPath) -> bool {
|
||||||
self.0.starts_with(&suffix.0)
|
self.0.ends_with(&suffix.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// region:delegate-methods
|
// region:delegate-methods
|
||||||
|
Loading…
x
Reference in New Issue
Block a user