mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 19:54:10 +03:00
Store only clock::Local
in InsertionFragment
This commit is contained in:
parent
dc81b5f57a
commit
b7535dfba4
@ -636,7 +636,7 @@ impl Buffer {
|
||||
.insertions
|
||||
.get(
|
||||
&InsertionFragmentKey {
|
||||
timestamp: fragment.insertion_timestamp,
|
||||
timestamp: fragment.insertion_timestamp.local(),
|
||||
split_offset: fragment.insertion_offset,
|
||||
},
|
||||
&(),
|
||||
|
@ -410,14 +410,14 @@ struct FragmentTextSummary {
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug)]
|
||||
struct InsertionFragment {
|
||||
timestamp: InsertionTimestamp,
|
||||
timestamp: clock::Local,
|
||||
split_offset: usize,
|
||||
fragment_id: Locator,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)]
|
||||
struct InsertionFragmentKey {
|
||||
timestamp: InsertionTimestamp,
|
||||
timestamp: clock::Local,
|
||||
split_offset: usize,
|
||||
}
|
||||
|
||||
@ -2178,7 +2178,7 @@ impl sum_tree::KeyedItem for InsertionFragment {
|
||||
impl InsertionFragment {
|
||||
fn new(fragment: &Fragment) -> Self {
|
||||
Self {
|
||||
timestamp: fragment.insertion_timestamp,
|
||||
timestamp: fragment.insertion_timestamp.local(),
|
||||
split_offset: fragment.insertion_offset,
|
||||
fragment_id: fragment.id.clone(),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user