Skip to content
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

Add WeakLoopHandle #216

Merged
merged 1 commit into from
Jan 12, 2025
Merged

Add WeakLoopHandle #216

merged 1 commit into from
Jan 12, 2025

Conversation

Paraworker
Copy link
Contributor

@Paraworker Paraworker commented Jan 8, 2025

Introduce WeakLoopHandle to avoid reference cycles.

Closes #212

@Paraworker Paraworker mentioned this pull request Jan 8, 2025
@Paraworker Paraworker force-pushed the weak-loop-handle branch 3 times, most recently from f01f6e5 to 59180c7 Compare January 8, 2025 17:26
Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit

src/loop_logic.rs Show resolved Hide resolved
@Paraworker Paraworker requested a review from notgull January 10, 2025 05:16
@Paraworker Paraworker force-pushed the weak-loop-handle branch 2 times, most recently from a4b89b6 to 4af5985 Compare January 10, 2025 11:50
Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, rebase on master to fix the errors.

@Paraworker
Copy link
Contributor Author

Rebased.

@notgull
Copy link
Member

notgull commented Jan 11, 2025

It looks like 1.63 CI is failing for some reason

@Paraworker
Copy link
Contributor Author

Paraworker commented Jan 12, 2025

It looks like 1.63 CI is failing for some reason

Looks like it requires T: Debug to impl Debug for Weak<T> in 1.63, hmm...
Implemented Debug for WeakLoopHandle manually.

Copy link

codecov bot commented Jan 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.28%. Comparing base (4bd9182) to head (2ea5738).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #216      +/-   ##
==========================================
+ Coverage   85.45%   86.28%   +0.82%     
==========================================
  Files          13       15       +2     
  Lines        1877     2078     +201     
==========================================
+ Hits         1604     1793     +189     
- Misses        273      285      +12     
Flag Coverage Δ
macos-latest 85.57% <100.00%> (?)
ubuntu-latest 85.88% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@notgull notgull merged commit ba9ed53 into Smithay:master Jan 12, 2025
14 checks passed
@Paraworker Paraworker deleted the weak-loop-handle branch January 12, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WeakLoopHandle support
2 participants