Assign unsed return value to underscore variable

This commit is contained in:
Kitaiti Makoto 2021-12-05 21:56:00 +09:00
parent 346a67fe1c
commit 05a98175bf

View File

@ -59,7 +59,7 @@ fn init_pool() -> Option<DbPool> {
let pool = builder.build(manager).ok()?; let pool = builder.build(manager).ok()?;
let conn = pool.get().unwrap(); let conn = pool.get().unwrap();
Instance::cache_local(&conn); Instance::cache_local(&conn);
Instance::create_local_instance_user(&conn); let _ = Instance::create_local_instance_user(&conn);
Instance::cache_local_instance_user(&conn); Instance::cache_local_instance_user(&conn);
Some(pool) Some(pool)
} }