Remove unused dimension struct
This commit is contained in:
parent
08ca3f6d01
commit
8b882bc5dc
21
src/value.rs
21
src/value.rs
@ -15,27 +15,6 @@ use crate::units::Unit;
|
||||
use crate::utils::{devour_whitespace_or_comment, parse_interpolation};
|
||||
use crate::{Token, TokenKind};
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub(crate) struct Dimension {
|
||||
val: u64,
|
||||
}
|
||||
|
||||
impl Add for Dimension {
|
||||
type Output = Self;
|
||||
|
||||
fn add(self, other: Self) -> Self {
|
||||
Dimension {
|
||||
val: self.val + other.val,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Dimension {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{}", self.val)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub(crate) enum ListSeparator {
|
||||
Space,
|
||||
|
Loading…
x
Reference in New Issue
Block a user