diff --git a/rslib/src/media/files.rs b/rslib/src/media/files.rs index 17090b2f0..870f25287 100644 --- a/rslib/src/media/files.rs +++ b/rslib/src/media/files.rs @@ -11,7 +11,6 @@ use std::io::Read; use std::path::{Path, PathBuf}; use std::{fs, io, time}; use unicode_normalization::{is_nfc, UnicodeNormalization}; -use utime; /// The maximum length we allow a filename to be. When combined /// with the rest of the path, the full path needs to be under ~240 chars diff --git a/rslib/src/media/sync.rs b/rslib/src/media/sync.rs index 7ce57c126..c8efe5c87 100644 --- a/rslib/src/media/sync.rs +++ b/rslib/src/media/sync.rs @@ -12,7 +12,6 @@ use crate::version; use bytes::Bytes; use coarsetime::Instant; use log::debug; -use reqwest; use reqwest::{multipart, Client, Response}; use serde_derive::{Deserialize, Serialize}; use serde_tuple::Serialize_tuple; diff --git a/rslib/src/template.rs b/rslib/src/template.rs index cf38bce28..54d5af7de 100644 --- a/rslib/src/template.rs +++ b/rslib/src/template.rs @@ -5,7 +5,6 @@ use crate::err::{AnkiError, Result, TemplateError}; use crate::i18n::{tr_strs, FString, I18n}; use crate::template_filters::apply_filters; use lazy_static::lazy_static; -use nom; use nom::branch::alt; use nom::bytes::complete::tag; use nom::error::ErrorKind; diff --git a/rslib/src/text.rs b/rslib/src/text.rs index b5055e4e5..4d5ff286d 100644 --- a/rslib/src/text.rs +++ b/rslib/src/text.rs @@ -1,7 +1,6 @@ // Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -use htmlescape; use lazy_static::lazy_static; use regex::{Captures, Regex}; use std::borrow::Cow;