mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-22 19:43:57 +00:00
Solved some warnings
This commit is contained in:
parent
b54684b677
commit
31bf2bc2b1
15 changed files with 31 additions and 57 deletions
|
@ -3,9 +3,7 @@ use std::path::{Path, PathBuf};
|
|||
|
||||
use rocket::Route;
|
||||
use rocket::response::NamedFile;
|
||||
use rocket_contrib::{Json, Value};
|
||||
|
||||
use auth::Headers;
|
||||
use rocket_contrib::Json;
|
||||
|
||||
use CONFIG;
|
||||
|
||||
|
@ -42,7 +40,7 @@ fn attachments(uuid: String, file: PathBuf) -> io::Result<NamedFile> {
|
|||
#[get("/alive")]
|
||||
fn alive() -> Json<String> {
|
||||
use util::format_date;
|
||||
use chrono::{NaiveDateTime, Utc};
|
||||
use chrono::Utc;
|
||||
|
||||
Json(format_date(&Utc::now().naive_utc()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue