mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
[red-knot] Add basic workspace support (#12318)
This commit is contained in:
parent
0c72577b5d
commit
91338ae902
29 changed files with 1018 additions and 664 deletions
|
@ -549,3 +549,17 @@ impl std::fmt::Display for SystemPathBuf {
|
|||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "cache")]
|
||||
impl ruff_cache::CacheKey for SystemPath {
|
||||
fn cache_key(&self, hasher: &mut ruff_cache::CacheKeyHasher) {
|
||||
self.0.as_str().cache_key(hasher);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "cache")]
|
||||
impl ruff_cache::CacheKey for SystemPathBuf {
|
||||
fn cache_key(&self, hasher: &mut ruff_cache::CacheKeyHasher) {
|
||||
self.as_path().cache_key(hasher);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue