Replace from/into with get/new when necessary.

This commit is contained in:
4lDO2
2023-09-06 08:31:28 +02:00
parent 9d742387ac
commit f025ece614
13 changed files with 46 additions and 52 deletions
+2 -1
View File
@@ -72,10 +72,11 @@ macro_rules! int_like {
container: $backing_atomic_type::new(x.get())
}
}
// TODO: Rename/replace with Default trait?
#[allow(dead_code)]
#[inline]
pub const fn default() -> Self {
Self::new($new_type_name::from(0))
Self::new($new_type_name::new(0))
}
#[allow(dead_code)]
#[inline]