diff options
Diffstat (limited to 'src/layout/constraints.rs')
| -rw-r--r-- | src/layout/constraints.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/layout/constraints.rs b/src/layout/constraints.rs index 1a26daeb..d808abd9 100644 --- a/src/layout/constraints.rs +++ b/src/layout/constraints.rs @@ -1,5 +1,3 @@ -use std::ops::Deref; - use super::*; /// Carries an item that is only valid in certain regions and the constraints @@ -12,14 +10,6 @@ pub struct Constrained<T> { pub constraints: Constraints, } -impl<T> Deref for Constrained<T> { - type Target = T; - - fn deref(&self) -> &Self::Target { - &self.item - } -} - /// Describe regions that match them. #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct Constraints { |
