Skip to content

Conversation

@Absolucy
Copy link
Collaborator

Some Value functions are now const variables instead.
The previous functions still exist, but are just thin wrappers around the variables, and are marked as deprecated.
Value::globals() -> Value::GLOBAL
Value::world() -> Value::WORLD
Value::null() -> Value::NULL

Also, I added the clippy::missing_const_for_fn lint, and marked anything it pointed out as const.

…e `const` variables instead. Also mark various functions as `const fn`
@Absolucy Absolucy requested a review from sohpeach February 25, 2025 05:39
@Absolucy
Copy link
Collaborator Author

requesting a review bc I'm not 100% sure there won't be any unintended side effects, so I just want a second pair of eyes on this

@Absolucy Absolucy merged commit a931c8e into master Feb 25, 2025
2 checks passed
@Absolucy Absolucy deleted the some-const-stuff branch February 25, 2025 23:33
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