mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 04:28:09 +03:00
Migrate to rust 2018 edition
This commit is contained in:
25 files changed
+105
-136
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user