mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Remove impl Into<f32> arguments (#8194)
* Closes https://github.com/emilk/egui/issues/8179
This commit is contained in:
@@ -173,8 +173,9 @@ impl SnapshotOptions {
|
||||
/// The default is `0.6` (which is enough for most egui tests to pass across different
|
||||
/// wgpu backends).
|
||||
#[inline]
|
||||
pub fn threshold(mut self, threshold: impl Into<f32>) -> Self {
|
||||
self.threshold = threshold.into();
|
||||
pub fn threshold(mut self, threshold: impl Into<OsThreshold<f32>>) -> Self {
|
||||
let threshold = threshold.into().threshold();
|
||||
self.threshold = threshold;
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user