Skip to content

Mark all possible functions const #81

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Mark all possible functions const #81

wants to merge 1 commit into from

Conversation

ctz
Copy link
Member

@ctz ctz commented Jun 19, 2025

Did this at the start of march and then forgot about it.

My ultimate goal was to be able to to write const SOMETHING: UnixTime = UnixTime::since_unix_epoch(...) which is not a strong motivation. But AIUI this is free, and mostly mechanical.

(Can't enable clippy::missing_const_for_fn which points out these changes, as it doesn't respect MSRV.)

@djc
Copy link
Member

djc commented Jun 19, 2025

(Can't enable clippy::missing_const_for_fn which points out these changes, as it doesn't respect MSRV.)

Should file an issue about this...

@ctz
Copy link
Member Author

ctz commented Jun 19, 2025

Should file an issue about this...

-> rust-lang/rust-clippy#15079

Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

Cool

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.

3 participants