diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e078438 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +# todo: spin our own image +image: registry.gitlab.com/mchodzikiewicz/embedded-plots-docker:latest + +stages: + - build + - test + +build: + stage: build + script: + - cargo build + +test: + stage: test + script: + - cargo test \ No newline at end of file diff --git a/src/curve.rs b/src/curve.rs index a5f58e8..8d32245 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -3,8 +3,7 @@ use core::ops::{Range}; use crate::range_conv::Scalable; use crate::drawable_curve::DrawableCurve; use embedded_graphics::prelude::*; -use itertools::MinMaxResult::MinMax; -use itertools::{Itertools, MinMaxResult}; +use itertools::{Itertools, MinMaxResult::MinMax, MinMaxResult}; pub struct PlotPoint { pub x: i32,