-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: continue node binding #43
base: main
Are you sure you want to change the base?
Conversation
ba46789
to
b60c673
Compare
Benchmark for LinuxClick to view benchmark
Benchmark for WindowsClick to view benchmark
|
Benchmark for LinuxClick to view benchmark
Benchmark for WindowsClick to view benchmark
|
Benchmark for LinuxClick to view benchmark
Benchmark for WindowsClick to view benchmark
|
a288b39
to
8516718
Compare
8516718
to
e95bef9
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #43 +/- ##
===========================================
+ Coverage 37.69% 86.26% +48.57%
===========================================
Files 1 1
Lines 260 386 +126
Branches 0 31 +31
===========================================
+ Hits 98 333 +235
+ Misses 162 53 -109
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Benchmark for LinuxClick to view benchmark
Benchmark for WindowsClick to view benchmark
|
{ | ||
let ret = f(self.doc.clone()); | ||
for (k, v) in self.doc.get_changed() { | ||
self.changed.entry(k).or_insert_with(Vec::new).extend(v.iter().cloned()); |
Check failure
Code scanning / clippy
use of or_insert_with to construct default value Error documentation
let Some(batch) = doc.batch.get_mut() else { | ||
return None; | ||
}; |
Check failure
Code scanning / clippy
this let...else may be rewritten with the ? operator Error documentation
@@ -199,6 +198,17 @@ | |||
} | |||
} | |||
|
|||
pub fn get_changed(&self) -> ChangedTypeRefs { |
Check failure
Code scanning / clippy
type doc::types::YTypeRef is more private than the item doc::document::Doc::get_changed Error documentation
@@ -758,6 +779,24 @@ | |||
Ok(update) | |||
} | |||
|
|||
fn mark_changed(changed: &mut ChangedTypeRefs, parent: YTypeRef, parent_sub: Option<SmolStr>) { | |||
if parent.inner.is_some() { | |||
let vec = changed.entry(parent).or_insert_with(Vec::new); |
Check failure
Code scanning / clippy
use of or_insert_with to construct default value Error documentation
} | ||
} | ||
|
||
pub fn reset_changed(&mut self) { |
Check failure
Code scanning / clippy
method reset_changed is never used Error documentation
Benchmark for LinuxClick to view benchmark
Benchmark for WindowsClick to view benchmark
|
No description provided.