mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Re-implement InFile wrappers as type aliases over generic InFileWrapper
This commit is contained in:
parent
30093a6d81
commit
c43078f99d
13 changed files with 151 additions and 107 deletions
|
@ -88,7 +88,7 @@ pub struct FlatTree {
|
|||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct SpanMap {
|
||||
struct SpanMap {
|
||||
#[serde(skip_serializing)]
|
||||
serialize: bool,
|
||||
span_size: u32,
|
||||
|
@ -122,7 +122,7 @@ impl SpanMap {
|
|||
}
|
||||
|
||||
impl SpanMap {
|
||||
pub fn do_serialize(&self) -> bool {
|
||||
fn do_serialize(&self) -> bool {
|
||||
self.serialize
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue