From f18861d8501e47da5a5d157d6f671070d25660f8 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 26 May 2018 14:54:26 -0700 Subject: [PATCH] cargo fmt --- core/src/api.rs | 2 +- core/src/receive.rs | 2 +- core/src/send.rs | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/core/src/api.rs b/core/src/api.rs index b0484540..743a03de 100644 --- a/core/src/api.rs +++ b/core/src/api.rs @@ -1,9 +1,9 @@ +use events::Key; use hex; use std::collections::HashMap; use std::error::Error; use std::fmt; use util::maybe_utf8; -use events::Key; #[derive(PartialEq)] pub enum APIEvent { diff --git a/core/src/receive.rs b/core/src/receive.rs index 0aa22047..b8291754 100644 --- a/core/src/receive.rs +++ b/core/src/receive.rs @@ -1,4 +1,4 @@ -use events::{Key, Events}; +use events::{Events, Key}; use key; use std::str; // we process these diff --git a/core/src/send.rs b/core/src/send.rs index 63205712..05e911b6 100644 --- a/core/src/send.rs +++ b/core/src/send.rs @@ -1,4 +1,4 @@ -use events::{Key, Events}; +use events::{Events, Key}; use key; // we process these use events::SendEvent; @@ -68,12 +68,7 @@ impl SendMachine { es } - fn deliver( - &self, - key: Key, - phase: String, - plaintext: Vec, - ) -> Events { + fn deliver(&self, key: Key, phase: String, plaintext: Vec) -> Events { let data_key = key::derive_phase_key(&self.side, &key, &phase); let (_nonce, encrypted) = key::encrypt_data(data_key, &plaintext); events![M_AddMessage(phase, encrypted)]