ran cargo fix

This commit is contained in:
Kai Jan Kriegel
2022-04-26 23:21:43 +02:00
parent ba99f6f131
commit df64d43e03
21 changed files with 43 additions and 44 deletions

View File

@ -5,7 +5,7 @@ use rkyv::Infallible;
use std::sync::Arc;
use anyhow::Context;
use rkyv::{Archived, Deserialize};
use rkyv::{Deserialize};
use rkyv::ser::Serializer;
use rkyv::ser::serializers::AllocSerializer;
use crate::db;
@ -118,7 +118,7 @@ impl UserDB {
pub fn get_all(&self) -> Result<Vec<(String, User)>, db::Error> {
let txn = self.env.begin_ro_txn()?;
let mut iter = self.db.get_all(&txn)?;
let iter = self.db.get_all(&txn)?;
let mut out = Vec::new();
for (uid, user) in iter {
let uid = unsafe { std::str::from_utf8_unchecked(uid).to_string() };

View File

@ -4,7 +4,7 @@ use once_cell::sync::OnceCell;
use rkyv::{Archive, Deserialize, Infallible, Serialize};
use std::collections::HashMap;
use std::fmt::{Display, Formatter, Write};
use std::ops::Deref;
use std::path::Path;
use std::sync::Arc;