Skip to content

Commit

Permalink
improvement: bump smol_str dependency to 0.1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
sinato committed Sep 20, 2020
1 parent 04821da commit 6b6a36e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/mun_hir/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ impl Name {
}

/// Shortcut to create inline plain text name
const fn new_inline_ascii(text: &[u8]) -> Name {
Name::new_text(SmolStr::new_inline_from_ascii(text.len(), text))
const fn new_inline(text: &str) -> Name {
Name::new_text(SmolStr::new_inline(text))
}

/// Resolve a name from the text of token.
Expand Down Expand Up @@ -94,7 +94,7 @@ pub mod known {
$(
#[allow(bad_style)]
pub const $ident: super::Name =
super::Name::new_inline_ascii(stringify!($ident).as_bytes());
super::Name::new_inline(stringify!($ident));
)*
};
}
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ categories = ["game-development", "mun"]
abi = { version = "=0.2.0", path = "../mun_abi", package = "mun_abi" }
rowan = "0.6.1"
text_unit = { version = "0.1.6", features = ["serde"] }
smol_str = { version = "0.1.12", features = ["serde"] }
smol_str = { version = "0.1.17", features = ["serde"] }
unicode-xid = "0.1.0"
drop_bomb = "0.1.4"

Expand Down

0 comments on commit 6b6a36e

Please sign in to comment.