Skip to content

Commit

Permalink
bump SI
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Feb 8, 2024
1 parent 0084ce4 commit 632d25d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ smallvec = "1.6.1"
scan_fmt = "0.2.6"
serde = { version = "1.0.127", features = [ "derive" ] }
serde_json = "1.0"
string-interner = "0.14"
string-interner = "0.15"
tar = "0.4.37"
tempfile = "3.8"
tensorflow = "0.17.0"
Expand Down
6 changes: 3 additions & 3 deletions data/src/dim/sym.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use itertools::Itertools;
use std::fmt;
use std::sync::{Arc, Mutex, Weak};
use string_interner::StringInterner;
use string_interner::DefaultStringInterner;
use string_interner::Symbol as _;

#[derive(Clone, Default)]
pub struct SymbolTable(Arc<Mutex<StringInterner>>);
pub struct SymbolTable(Arc<Mutex<DefaultStringInterner>>);

impl SymbolTable {
pub fn get(&self, name: &str) -> Option<Symbol> {
Expand Down Expand Up @@ -55,7 +55,7 @@ impl fmt::Debug for SymbolTable {
}

#[derive(Clone)]
pub struct Symbol(Weak<Mutex<StringInterner>>, string_interner::DefaultSymbol);
pub struct Symbol(Weak<Mutex<DefaultStringInterner>>, string_interner::DefaultSymbol);

impl PartialEq for Symbol {
fn eq(&self, other: &Self) -> bool {
Expand Down

0 comments on commit 632d25d

Please sign in to comment.