aboutsummaryrefslogtreecommitdiff
path: root/src/guide.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-06 10:24:54 +0100
committerAkshay <[email protected]>2021-04-06 10:24:54 +0100
commitc84c38544bc6e81f0b0482e4e82b6c95848c1a0c (patch)
tree3ae2f3387ba5ef56a7f7c3304dc029ae7845f175 /src/guide.rs
parent3f5b917c6ced370d940774b51ff89cec0d03c562 (diff)
apply clippy lints
Diffstat (limited to 'src/guide.rs')
-rw-r--r--src/guide.rs16
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 @@
1use crate::{ 1use crate::bitmap::Axis;
2 bitmap::Axis,
3 lisp::{expr::LispExpr, number::LispNumber},
4};
5
6use std::convert::Into;
7 2
8#[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)] 3#[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)]
9pub struct Guide { 4pub struct Guide {
10 pub axis: Axis, 5 pub axis: Axis,
11 pub offset: u32, 6 pub offset: u32,
12} 7}
13
14impl 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}