Skip to content

Commit

Permalink
Update redb to 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Nov 21, 2023
1 parent 8f703d1 commit cab2d68
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
17 changes: 9 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mime_guess = "2.0.4"
miniscript = "10.0.0"
mp4 = "0.14.0"
ord-bitcoincore-rpc = "0.17.1"
redb = { git = "https://github.com/cberner/redb.git", rev = "c29eed6f866d50a2c79042fe55cf898a5aba1579" }
redb = "1.4.0"
regex = "1.6.0"
rss = "2.0.1"
rust-embed = "8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod updater;
#[cfg(test)]
pub(crate) mod testing;

const SCHEMA_VERSION: u64 = 12;
const SCHEMA_VERSION: u64 = 13;

macro_rules! define_table {
($name:ident, $key:ty, $value:ty) => {
Expand Down
8 changes: 4 additions & 4 deletions src/index/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(super) type RuneEntryValue = (
u64, // number
u128, // rune
u128, // supply
Option<u32>, // symbol
Option<char>, // symbol
u32, // timestamp
);

Expand Down Expand Up @@ -90,7 +90,7 @@ impl Entry for RuneEntry {
number,
rune: Rune(rune),
supply,
symbol: symbol.map(|symbol| char::from_u32(symbol).unwrap()),
symbol,
timestamp,
}
}
Expand All @@ -117,7 +117,7 @@ impl Entry for RuneEntry {
self.number,
self.rune.0,
self.supply,
self.symbol.map(u32::from),
self.symbol,
self.timestamp,
)
}
Expand Down Expand Up @@ -417,7 +417,7 @@ mod tests {
5,
6,
7,
Some(u32::from('a')),
Some('a'),
6,
);

Expand Down

0 comments on commit cab2d68

Please sign in to comment.