feat: support desktop more completely
This commit is contained in:
1 parent
a2b0c50a34
commit
efd0e9b564
25 files changed
+701
-441
No files matched your search
@@ -467,7 +467,7 @@ impl<'bump> DiffMachine<'bump> {
|
||||
if !has_comitted {
|
||||
has_comitted = true;
|
||||
edits.push(PushRoot {
|
||||
id: root.unwrap().as_u64(),
|
||||
root: root.unwrap().as_u64(),
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1026,14 +1026,6 @@ impl<'bump> DiffMachine<'bump> {
|
||||
}
|
||||
}
|
||||
|
||||
fn replace_and_create_one_with_many(
|
||||
&mut self,
|
||||
old: &'bump VNode<'bump>,
|
||||
new: &'bump [VNode<'bump>],
|
||||
) {
|
||||
//
|
||||
}
|
||||
|
||||
fn replace_and_create_many_with_one(
|
||||
&mut self,
|
||||
old: &'bump [VNode<'bump>],
|
||||
@@ -1130,13 +1122,3 @@ impl<'bump> DiffMachine<'bump> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn compare_strs(a: &str, b: &str) -> bool {
|
||||
// Check by pointer, optimizing for static strs
|
||||
if !std::ptr::eq(a, b) {
|
||||
// If the pointers are different then check by value
|
||||
a == b
|
||||
} else {
|
||||
true
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user