Changed arguments Arc<T> to bepassed by value, clone on arc just copies the refference anyway.

This commit is contained in:
Jordan Petridis
2017-10-21 22:53:04 +03:00
parent 7b0a8f0e25
commit 2077215491
8 changed files with 44 additions and 40 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ fn run() -> Result<()> {
if args.up {
let db = hammond_data::establish_connection();
let db = Arc::new(Mutex::new(db));
index_feed::index_loop(&db.clone(), false)?;
index_feed::index_loop(db.clone(), false)?;
}
if args.dl >= 0 {