mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Cleanup
This commit is contained in:
parent
1669344b2a
commit
180e9b2bbf
17 changed files with 175 additions and 168 deletions
|
@ -19,6 +19,10 @@ pub(crate) struct Trace<T, V> {
|
|||
|
||||
impl<T, V> Trace<T, V> {
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn new_for_arena() -> Trace<T, V> {
|
||||
Trace { arena: Some(Arena::default()), map: None, len: 0 }
|
||||
}
|
||||
|
||||
pub(crate) fn new_for_map() -> Trace<T, V> {
|
||||
Trace { arena: None, map: Some(ArenaMap::default()), len: 0 }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue