summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/elements.rs4
-rw-r--r--src/library/mod.rs1
-rw-r--r--src/library/text.rs2
-rw-r--r--src/library/utility.rs1
4 files changed, 2 insertions, 6 deletions
diff --git a/src/library/elements.rs b/src/library/elements.rs
index d1c52ab7..9680dfee 100644
--- a/src/library/elements.rs
+++ b/src/library/elements.rs
@@ -5,9 +5,7 @@ use decorum::N64;
use super::*;
use crate::diag::Error;
-use crate::layout::{
- BackgroundNode, BackgroundShape, FixedNode, ImageNode, PadNode, Paint,
-};
+use crate::layout::{BackgroundNode, BackgroundShape, FixedNode, ImageNode, PadNode};
/// `image`: An image.
pub fn image(ctx: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
diff --git a/src/library/mod.rs b/src/library/mod.rs
index 411755bb..d99eb24d 100644
--- a/src/library/mod.rs
+++ b/src/library/mod.rs
@@ -16,7 +16,6 @@ pub use utility::*;
use std::convert::TryFrom;
use std::rc::Rc;
-use crate::color::{Color, RgbaColor};
use crate::diag::{At, TypResult};
use crate::eval::{Args, Array, EvalContext, Scope, State, Str, Template, Value};
use crate::font::{FontFamily, FontStretch, FontStyle, FontWeight, VerticalFontMetric};
diff --git a/src/library/text.rs b/src/library/text.rs
index 2816ea81..b532b20b 100644
--- a/src/library/text.rs
+++ b/src/library/text.rs
@@ -1,5 +1,5 @@
use super::*;
-use crate::layout::{Decoration, LineDecoration, LineKind, Paint};
+use crate::layout::{Decoration, LineDecoration, LineKind};
/// `font`: Configure the font.
pub fn font(ctx: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
diff --git a/src/library/utility.rs b/src/library/utility.rs
index ef7adff0..16a6f5db 100644
--- a/src/library/utility.rs
+++ b/src/library/utility.rs
@@ -2,7 +2,6 @@ use std::cmp::Ordering;
use std::str::FromStr;
use super::*;
-use crate::color::{Color, RgbaColor};
/// `assert`: Ensure that a condition is fulfilled.
pub fn assert(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {