mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-24 02:53:35 +00:00
internal: a bit more of cwd safety for flycheck
This commit is contained in:
parent
8df38aa797
commit
8d8c26e6f5
16 changed files with 72 additions and 52 deletions
|
@ -186,6 +186,9 @@ impl AbsPath {
|
|||
pub fn starts_with(&self, base: &AbsPath) -> bool {
|
||||
self.0.starts_with(&base.0)
|
||||
}
|
||||
pub fn ends_with(&self, suffix: &RelPath) -> bool {
|
||||
self.0.starts_with(&suffix.0)
|
||||
}
|
||||
|
||||
// region:delegate-methods
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue