fmt update

This commit is contained in:
William Brown 2018-11-09 18:27:58 +10:00
parent 58e45149d4
commit 3c03594e51

View file

@ -51,6 +51,8 @@ impl QueryServer {
} }
// What should this take? // What should this take?
// This should probably take raw encoded entries? Or sohuld they
// be handled by fe?
pub fn create(&mut self) -> Result<(), ()> { pub fn create(&mut self) -> Result<(), ()> {
Ok(()) Ok(())
} }
@ -96,6 +98,7 @@ impl Handler<CreateEvent> for QueryServer {
// Auth requests? How do we structure these ... // Auth requests? How do we structure these ...
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
extern crate actix; extern crate actix;
@ -108,9 +111,9 @@ mod tests {
extern crate tokio; extern crate tokio;
use super::super::server::QueryServer;
use super::super::be::Backend; use super::super::be::Backend;
use super::super::log::{self, EventLog, LogEvent}; use super::super::log::{self, EventLog, LogEvent};
use super::super::server::QueryServer;
macro_rules! run_test { macro_rules! run_test {
($test_fn:expr) => {{ ($test_fn:expr) => {{
@ -133,6 +136,7 @@ mod tests {
}}; }};
} }
#[test] #[test]
fn test_be_create_user() { fn test_be_create_user() {
run_test!(|log, mut server: QueryServer| { run_test!(|log, mut server: QueryServer| {