1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-31 23:14:48 +00:00

Migrate to rust 2018 edition

This commit is contained in:
Daniel García 2018-12-07 02:05:45 +01:00
commit 94810c106a
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
25 changed files with 105 additions and 136 deletions

View file

@ -63,14 +63,14 @@ impl Cipher {
use diesel;
use diesel::prelude::*;
use db::DbConn;
use db::schema::*;
use crate::db::DbConn;
use crate::db::schema::*;
/// Database methods
impl Cipher {
pub fn to_json(&self, host: &str, user_uuid: &str, conn: &DbConn) -> Value {
use serde_json;
use util::format_date;
use crate::util::format_date;
use super::Attachment;
let attachments = Attachment::find_by_cipher(&self.uuid, conn);