From c8d9f6e56f17d546355960e152e38337089fc0d2 Mon Sep 17 00:00:00 2001 From: pavel-mukhanov Date: Mon, 1 Jul 2019 13:51:12 +0300 Subject: [PATCH] Fix fmt. --- tests/test_db.rs | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/tests/test_db.rs b/tests/test_db.rs index f0ec54c..151513b 100644 --- a/tests/test_db.rs +++ b/tests/test_db.rs @@ -22,8 +22,8 @@ mod util; use libc::size_t; use rocksdb::{DBVector, Error, IteratorMode, Options, WriteBatch, DB}; -use util::DBPath; use std::thread; +use util::DBPath; #[test] fn test_db_vector() { @@ -180,15 +180,25 @@ fn sync_snapshot_test() { // Unsafe here is safe, because `handler.join()` is called at the end of the // method to ensure that snapshot will not outlive database. let handler_1 = unsafe { - thread::Builder::new().spawn_unchecked(|| { - assert_eq!(snapshot.get(b"k1").unwrap().unwrap().to_utf8().unwrap(), "v1"); - }).unwrap() + thread::Builder::new() + .spawn_unchecked(|| { + assert_eq!( + snapshot.get(b"k1").unwrap().unwrap().to_utf8().unwrap(), + "v1" + ); + }) + .unwrap() }; let handler_2 = unsafe { - thread::Builder::new().spawn_unchecked(|| { - assert_eq!(snapshot.get(b"k2").unwrap().unwrap().to_utf8().unwrap(), "v2"); - }).unwrap() + thread::Builder::new() + .spawn_unchecked(|| { + assert_eq!( + snapshot.get(b"k2").unwrap().unwrap().to_utf8().unwrap(), + "v2" + ); + }) + .unwrap() }; handler_1.join().unwrap();