vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit e3a2dfffab7d8af64bb0c964fc740988979eb1a0
parent 8bf1278b1b7483c93cc083fdd6011fc4206447af
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 26 Jun 2021 14:21:58 +0200

Formatting

Diffstat:
Msrc/error.rs | 2+-
Msrc/main.rs | 12++----------
2 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/error.rs b/src/error.rs @@ -42,6 +42,7 @@ use jsonwebtoken::errors::Error as JwtErr; use lettre::address::AddressError as AddrErr; use lettre::error::Error as LettreErr; use lettre::transport::smtp::Error as SmtpErr; +use openssl::error::ErrorStack as SSLErr; use regex::Error as RegexErr; use reqwest::Error as ReqErr; use serde_json::{Error as SerdeErr, Value}; @@ -50,7 +51,6 @@ use std::time::SystemTimeError as TimeErr; use u2f::u2ferror::U2fError as U2fErr; use webauthn_rs::error::WebauthnError as WebauthnErr; use yubico::yubicoerror::YubicoError as YubiErr; -use openssl::error::ErrorStack as SSLErr; #[derive(Serialize)] pub struct Empty {} diff --git a/src/main.rs b/src/main.rs @@ -17,15 +17,7 @@ extern crate diesel; extern crate diesel_migrations; use job_scheduler::{Job, JobScheduler}; -use std::{ - fs::create_dir_all, - panic, - path::Path, - process::exit, - str::FromStr, - thread, - time::Duration, -}; +use std::{fs::create_dir_all, panic, path::Path, process::exit, str::FromStr, thread, time::Duration}; #[macro_use] mod error; @@ -252,7 +244,7 @@ fn check_data_folder() { } } -fn check_rsa_keys()-> Result<(), crate::error::Error> { +fn check_rsa_keys() -> Result<(), crate::error::Error> { // If the RSA keys don't exist, try to create them let priv_path = CONFIG.private_rsa_key(); let pub_path = CONFIG.public_rsa_key();