-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
impl<C> $op_trait<PreAlpha<C>> for {f32,f64}
impls to work a…
…round issue #283
- Loading branch information
Showing
3 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Checks that issue #283 (fixed in 0.7.1) doesn't re-appear. The cause was the | ||
// existence of `impl Mul<PreAlpha<C>> for f32` and `impl Mul<PreAlpha<C>> for | ||
// f64`. | ||
|
||
// Both of these uses are necessary for triggering the issue | ||
#[allow(unused_imports)] | ||
use palette::Oklch; | ||
#[allow(unused_imports)] | ||
use scad::OffsetType; | ||
|
||
fn main() { | ||
println!("{}", 42.0 * 1.0); // bug also happens when specifying f32 or f64 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters