diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-18 00:58:32 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-18 00:58:32 +0100 |
| commit | b2e6a297893348a871fba8997017a9fc98d5674b (patch) | |
| tree | c88f18c063d97d91712185c58ccf1cd745663cc1 /src/geom | |
| parent | d9c529347d7f46eb2f4698d256b1906c1ced6b76 (diff) | |
Refactoring
Diffstat (limited to 'src/geom')
| -rw-r--r-- | src/geom/spec.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/geom/spec.rs b/src/geom/spec.rs index 3b49b54a..82bedf9e 100644 --- a/src/geom/spec.rs +++ b/src/geom/spec.rs @@ -23,11 +23,6 @@ impl<T> Spec<T> { Self { x: v.clone(), y: v } } - /// Borrows the individual fields. - pub fn as_ref(&self) -> Spec<&T> { - Spec { x: &self.x, y: &self.y } - } - /// Maps the individual fields with `f`. pub fn map<F, U>(self, mut f: F) -> Spec<U> where |
