Changed arguments Arc<T> to bepassed by value, clone on arc just copies the refference anyway.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user