Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: bump smol_str dependency to 0.1.17 #270

Merged
merged 1 commit into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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