clippy improvements

feat/vaults
Tomáš Mládek 2020-08-28 13:51:22 +02:00
parent f1c5a59073
commit c18625285b
3 changed files with 3 additions and 4 deletions

View File

@ -94,7 +94,7 @@ struct LoggerSink {
impl std::io::Write for LoggerSink {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
self.buffer.extend(buf.into_iter());
self.buffer.extend(buf.iter());
if self.buffer.ends_with(b"\n") {
self.flush()?;

View File

@ -67,7 +67,7 @@ pub async fn update_directory<T: AsRef<Path>>(
.expect("path not valid unicode?!")
.to_string(),
hash: digest.unwrap().unwrap(),
size: size,
size,
};
let _insert_result = db_executor

View File

@ -13,7 +13,6 @@ mod database;
mod dataops;
mod models;
mod schema;
use env_logger;
use log::info;
use std::fs;
use std::path::PathBuf;
@ -51,7 +50,7 @@ async fn api_refresh(state: web::Data<State>) -> Result<HttpResponse, Error> {
Ok(HttpResponse::Ok().finish())
}
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
const VERSION: &str = env!("CARGO_PKG_VERSION");
fn main() -> std::io::Result<()> {
let env = env_logger::Env::default().filter_or(env_logger::DEFAULT_FILTER_ENV, "info");