Skip to content

Commit 7136c16

Browse files
committed
Explicitly invoke Au::clamp() to avoid colliding with the unstable Rust library method of the
same name. Fixes breakage from rust-lang/rust#44095.
1 parent 8e3ccb5 commit 7136c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app_unit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl Au {
189189

190190
#[inline]
191191
fn clamp_self(&mut self) {
192-
*self = self.clamp()
192+
*self = Au::clamp(*self)
193193
}
194194

195195
#[inline]

0 commit comments

Comments
 (0)