mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
[red-knot] Upgrade to the *new* *new* salsa (#12406)
This commit is contained in:
parent
9495331a5f
commit
e18b4e42d3
30 changed files with 483 additions and 415 deletions
|
@ -68,13 +68,6 @@ impl MemoryFileSystem {
|
|||
&self.inner.cwd
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn snapshot(&self) -> Self {
|
||||
Self {
|
||||
inner: self.inner.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn metadata(&self, path: impl AsRef<SystemPath>) -> Result<Metadata> {
|
||||
fn metadata(fs: &MemoryFileSystem, path: &SystemPath) -> Result<Metadata> {
|
||||
let by_path = fs.inner.by_path.read().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue