diff options
author | Akshay <[email protected]> | 2021-04-06 10:24:54 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-04-06 10:24:54 +0100 |
commit | c84c38544bc6e81f0b0482e4e82b6c95848c1a0c (patch) | |
tree | 3ae2f3387ba5ef56a7f7c3304dc029ae7845f175 /src/guide.rs | |
parent | 3f5b917c6ced370d940774b51ff89cec0d03c562 (diff) |
apply clippy lints
Diffstat (limited to 'src/guide.rs')
-rw-r--r-- | src/guide.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/guide.rs b/src/guide.rs index 85d0594..0416e5c 100644 --- a/src/guide.rs +++ b/src/guide.rs | |||
@@ -1,21 +1,7 @@ | |||
1 | use crate::{ | 1 | use crate::bitmap::Axis; |
2 | bitmap::Axis, | ||
3 | lisp::{expr::LispExpr, number::LispNumber}, | ||
4 | }; | ||
5 | |||
6 | use std::convert::Into; | ||
7 | 2 | ||
8 | #[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)] | 3 | #[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)] |
9 | pub struct Guide { | 4 | pub struct Guide { |
10 | pub axis: Axis, | 5 | pub axis: Axis, |
11 | pub offset: u32, | 6 | pub offset: u32, |
12 | } | 7 | } |
13 | |||
14 | impl Into<LispExpr> for Guide { | ||
15 | fn into(self) -> LispExpr { | ||
16 | LispExpr::List(vec![ | ||
17 | self.axis.into(), | ||
18 | LispExpr::Number(LispNumber::Integer(self.offset as i64)), | ||
19 | ]) | ||
20 | } | ||
21 | } | ||