Skip to content

Commit

Permalink
Fix the all-types example
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Feb 16, 2024
1 parent 4e7d029 commit fa6970c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions heed/examples/all-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,6 @@ fn main() -> Result<(), Box<dyn Error>> {
let mut wtxn = env.write_txn()?;
let _db: Database<Str, Unit> = 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::<Str, SerdeJson<i32>>(&mut wtxn, Some("ignored-data"));
assert!(result.is_err());

// you can iterate over keys in order
type BEI64 = I64<BE>;

Expand Down

0 comments on commit fa6970c

Please sign in to comment.