Fix benchmark compile errors (#2881)

* Fix benchmark compile errors

* Also check bench code during CI
This commit is contained in:
Hocuri
2021-12-09 22:52:53 +01:00
committed by GitHub
parent 46eb391a1b
commit b50f211c28
4 changed files with 4 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ async fn create_accounts(n: u32) {
let dir = tempdir().unwrap();
let p: PathBuf = dir.path().join("accounts").into();
let accounts = Accounts::new("my_os".into(), p.clone()).await.unwrap();
let mut accounts = Accounts::new(p.clone()).await.unwrap();
for expected_id in 2..n {
let id = accounts.add_account().await.unwrap();