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

Use xcursor-rs for cursor theme parsing #938

Merged
merged 3 commits into from
Aug 17, 2024
Merged

Conversation

psychon
Copy link
Owner

@psychon psychon commented Aug 17, 2024

Use xcursor-rs for cursor theme parsing

Instead of reinventing the wheel, let's use an existing wheel for the
same job: Parsing cursor theme files.

This finished #934. A first step towards that goal was previously done
in commit d0ed9db.

Fixes: #934


After doing the above, I also came across some small simplifications that I also added to this PR.

Instead of reinventing the wheel, let's use an existing wheel for the
same job: Parsing cursor theme files.

This finished #934. A first step towards that goal was previously done
in commit d0ed9db.

Fixes: #934
Signed-off-by: Uli Schlachter <[email protected]>
I would have thought clippy already complains about this...? Or does the
intermediate .map() confuse it, perhaps?

Signed-off-by: Uli Schlachter <[email protected]>
I'm not sure if the new version really is simpler, but at least I got
rid of an unwrap().

Signed-off-by: Uli Schlachter <[email protected]>
Copy link

codecov bot commented Aug 17, 2024

Codecov Report

Attention: Patch coverage is 15.38462% with 22 lines in your changes missing coverage. Please review.

Project coverage is 12.60%. Comparing base (cf2bb3a) to head (9ee898e).
Report is 16 commits behind head on master.

Files Patch % Lines
x11rb/src/cursor/mod.rs 0.00% 16 Missing ⚠️
x11rb/src/cursor/find_cursor.rs 40.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #938      +/-   ##
==========================================
- Coverage   13.02%   12.60%   -0.42%     
==========================================
  Files         191      191              
  Lines      137122   136422     -700     
==========================================
- Hits        17860    17202     -658     
+ Misses     119262   119220      -42     
Flag Coverage Δ
tests 12.60% <15.38%> (-0.42%) ⬇️

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.

@eduardosm
Copy link
Collaborator

Should we make codecov merely informative (i.e., so it does not show CI as failed in commit or PR lists)?

@mergify mergify bot merged commit c21935c into master Aug 17, 2024
22 of 23 checks passed
@mergify mergify bot deleted the xcursor-find-cursor branch August 17, 2024 12:35
@psychon
Copy link
Owner Author

psychon commented Aug 17, 2024

Uhm.... Can codecov actually do that? As far as I can tell, we have zero configuration of codecov and "it just does its thing". So I guess all I could do is to remove all its permissions for his repo... and even there I have no clue how to do that.

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.

Use xcursor-rs to parse the xcursor format
2 participants