mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Use NonZeroU32 in canvas_traits
This commit is contained in:
parent
ecf3b05153
commit
5e72173e8c
6 changed files with 16 additions and 5 deletions
|
@ -39,6 +39,10 @@ mod imp {
|
|||
}
|
||||
}
|
||||
|
||||
pub unsafe fn new_unchecked(x: u32) -> Self {
|
||||
NonZeroU32(x)
|
||||
}
|
||||
|
||||
pub fn get(self) -> u32 {
|
||||
self.0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue