mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-26 19:41:18 +00:00
Updated dependencies, removed some unnecessary clones and fixed some lints
This commit is contained in:
parent
bf6ae91a6d
commit
5ee04e31e5
7 changed files with 66 additions and 87 deletions
|
@ -101,7 +101,7 @@ pub fn delete_file(path: &str) -> IOResult<()> {
|
|||
const UNITS: [&str; 6] = ["bytes", "KB", "MB", "GB", "TB", "PB"];
|
||||
|
||||
pub fn get_display_size(size: i32) -> String {
|
||||
let mut size = size as f64;
|
||||
let mut size: f64 = size.into();
|
||||
let mut unit_counter = 0;
|
||||
|
||||
loop {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue