Skip to content

Conversation

@blakesmittty
Copy link
Contributor

Fixes #465

This refactor moves the repeated implementations of the [de]normalize_[un]signed_value functions into 'src/input/event/value.rs' so they can be reused by the source and target implementations.

No functional changes.

Copy link
Contributor

@pastaq pastaq left a comment

Choose a reason for hiding this comment

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

I don't think we need the u8 casts. Aside from that it looks good.

@blakesmittty blakesmittty force-pushed the qol-normalize_values-465 branch from ff1db85 to 9275912 Compare January 2, 2026 03:40
@pastaq
Copy link
Contributor

pastaq commented Jan 2, 2026

@blakesmittty
Thanks, that's much cleaner.

One other thing I didn't catch before but would be a good change would be to reduce the number of commits. As this is a simple change just one commit should be sufficient. The commit title for your first commit is actually perfect for capturing the scope of work. If you wanted to add the amplifying information from the other commits for all the specific changes to each source and target implementation below the commit title, that would be okay, but it's not necessary.

@blakesmittty
Copy link
Contributor Author

@pastaq thanks for the feedback, noted for the future👍

@pastaq
Copy link
Contributor

pastaq commented Jan 2, 2026

@pastaq thanks for the feedback, noted for the future👍

You should be able to squash the commits and force push the branch

@blakesmittty blakesmittty force-pushed the qol-normalize_values-465 branch from 9275912 to 2d4616c Compare January 2, 2026 16:39
@blakesmittty
Copy link
Contributor Author

@pastaq done 👍

Copy link
Contributor

@ShadowApex ShadowApex left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you for this!

@ShadowApex ShadowApex merged commit c809c08 into ShadowBlip:main Jan 5, 2026
3 checks passed
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

🎉 This PR is included in version 0.71.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QOL: add repeated normalize/denormalize functions to InputValue

3 participants