mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Cleanup project.json deserialization
This commit is contained in:
parent
a07cad16ab
commit
e6c61d5072
15 changed files with 141 additions and 144 deletions
|
@ -1,7 +1,7 @@
|
|||
//! Object safe interface for file watching and reading.
|
||||
use std::fmt;
|
||||
|
||||
use paths::AbsPathBuf;
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Entry {
|
||||
|
@ -28,7 +28,7 @@ pub trait Handle: fmt::Debug {
|
|||
Self: Sized;
|
||||
fn set_config(&mut self, config: Config);
|
||||
fn invalidate(&mut self, path: AbsPathBuf);
|
||||
fn load_sync(&mut self, path: &AbsPathBuf) -> Option<Vec<u8>>;
|
||||
fn load_sync(&mut self, path: &AbsPath) -> Option<Vec<u8>>;
|
||||
}
|
||||
|
||||
impl Entry {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue