From d37d0e4ccda4de05c5bf20612833b0d7e05c82e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 16 Feb 2024 19:28:18 +0100 Subject: [PATCH] Fix the all-types example --- heed/examples/all-types.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/heed/examples/all-types.rs b/heed/examples/all-types.rs index 8bed7225..074505b2 100644 --- a/heed/examples/all-types.rs +++ b/heed/examples/all-types.rs @@ -76,15 +76,6 @@ fn main() -> Result<(), Box> { let mut wtxn = env.write_txn()?; let _db: Database = env.create_database(&mut wtxn, Some("ignored-data"))?; - // and here we try to open it with other types - // asserting that it correctly returns an error - // - // NOTE that those types are not saved upon runs and - // therefore types cannot be checked upon different runs, - // the first database opening fix the types for this run. - let result = env.create_database::>(&mut wtxn, Some("ignored-data")); - assert!(result.is_err()); - // you can iterate over keys in order type BEI64 = I64;