Skip to content

Conversation

@bolinfest
Copy link
Collaborator

Codex thought this was a good idea while working on #10192.

Codex thought this was a good idea while working on #10192.
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b82d1c3e2d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +64 to +67
impl std::ops::Mul<f64> for TruncationPolicy {
type Output = Self;

fn mul(self, multiplier: f64) -> Self::Output {
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Badge Restore inherent mul or keep backward-compatible API

Implementing Mul<f64> is fine for operator use, but removing the inherent TruncationPolicy::mul is a breaking API change: callers using policy.mul(1.2) (without use std::ops::Mul;) will now fail to compile. Mul is not in the prelude, so the method is no longer available by default. If this type is part of the public API, consider keeping an inherent mul that delegates to self * multiplier to preserve downstream compatibility.

Useful? React with 👍 / 👎.

@bolinfest bolinfest merged commit 10ea117 into main Jan 30, 2026
30 of 32 checks passed
@bolinfest bolinfest deleted the pr10272 branch January 30, 2026 23:50
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants