You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In criterion.rs/plot/src/lib.rs, the comment indicate the code will panics if size is a non-positive value(size <= 0.) while the code will panic if size < 0.
/// # Panics////// Panics if `size` is a non-positive valuefnset(&mutself,size:FontSize) -> &mutFigure{let size = size.0;assert!(size >= 0.);self.font_size = Some(size);self}
In criterion.rs/plot/src/filledcurve.rs, the code doesn't check whether opacity is outside the range [0, 1].
/// # Panics////// Panics if `opacity` is outside the range `[0, 1]`fnset(&mutself,opacity:Opacity) -> &mutProperties{self.opacity = Some(opacity.0);self}
The text was updated successfully, but these errors were encountered:
In criterion.rs/plot/src/lib.rs, the comment indicate the code will panics if size is a non-positive value(size <= 0.) while the code will panic if size < 0.
In criterion.rs/plot/src/filledcurve.rs, the code doesn't check whether
opacity
is outside the range[0, 1]
.The text was updated successfully, but these errors were encountered: