Skip to content

Commit

Permalink
localstorage remove_item and bevy 0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivy committed Jul 5, 2024
1 parent 91e2b36 commit d879917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repository = "https://github.com/johanhelsing/bevy_pkv"
[dependencies]
thiserror = "1.0"
serde = "1.0"
bevy_ecs = { version = "0.13", optional = true } # we need for deriving Resource in PkvStore
bevy_ecs = { version = "0.14", optional = true } # we need for deriving Resource in PkvStore

[features]
default = ["bevy", "redb"]
Expand All @@ -37,7 +37,7 @@ directories = "5.0"
redb = { version = "1.5", optional = true }

[dev-dependencies]
bevy = { version = "0.13", default-features = false }
bevy = { version = "0.14", default-features = false }
strum_macros = "0.26"
tempfile = "3"

Expand Down
2 changes: 1 addition & 1 deletion src/local_storage_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl StoreImpl for LocalStorageStore {
for index in 0..length {
if let Some(key) = storage.key(index).map_err(SetError::Clear)? {
if key.starts_with(prefix) {
storage.delete(&key).map_err(SetError::Clear)?;
storage.remove_item(&key).map_err(SetError::Clear)?;
}
}
}
Expand Down

0 comments on commit d879917

Please sign in to comment.