sizing actually working correctly now
This commit is contained in:
1 parent
b48acccb8d
commit
f9097807a2
17 files changed
+333
-194
No files matched your search
@@ -54,3 +54,13 @@ impl CopyId {
|
||||
Id(self.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait IdUtil {
|
||||
fn duplicate(&self) -> Self;
|
||||
}
|
||||
|
||||
impl IdUtil for Option<Id> {
|
||||
fn duplicate(&self) -> Self {
|
||||
self.as_ref().map(|i| i.duplicate())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user