Skip to content

set must_use attributes only to methods returning Self #7

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

Merged
merged 2 commits into from
Apr 5, 2025

Conversation

haraldmaida
Copy link
Member

Some methods have been marked with the #[must_use] attribute, where it might not make sense.

Re-visited functions of the API and removed or set the #[must_use] attribute mostly for when returning Spec or an expectation.

@haraldmaida haraldmaida added the enhancement New feature or request label Apr 5, 2025
@haraldmaida haraldmaida self-assigned this Apr 5, 2025
Copy link

codecov bot commented Apr 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.81%. Comparing base (7d19013) to head (ee9b8e1).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   89.81%   89.81%           
=======================================
  Files          18       18           
  Lines        1385     1385           
  Branches     1385     1385           
=======================================
  Hits         1244     1244           
  Misses        137      137           
  Partials        4        4           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

# Conflicts:
#	Cargo.toml
#	src/spec/mod.rs
@haraldmaida haraldmaida merged commit e52293c into main Apr 5, 2025
18 checks passed
@haraldmaida haraldmaida deleted the revisit-must-use-attributes-in-public-api branch April 5, 2025 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant