fix clippy warnings

This commit is contained in:
Dustin J. Mitchell 2020-11-29 14:05:51 -05:00
parent d832b0b859
commit 42d988d601
3 changed files with 4 additions and 6 deletions

View file

@ -1,7 +1,6 @@
use crate::server::{AddVersionResult, GetVersionResult, HistorySegment, Server, VersionId};
use failure::{format_err, Fallible};
use std::io::Read;
use ureq;
use uuid::Uuid;
pub struct RemoteServer {

View file

@ -151,9 +151,7 @@ impl Task {
pub fn is_active(&self) -> bool {
self.taskmap
.iter()
.filter(|(k, v)| k.starts_with("start.") && v.is_empty())
.next()
.is_some()
.any(|(k, v)| k.starts_with("start.") && v.is_empty())
}
pub fn get_modified(&self) -> Option<DateTime<Utc>> {