mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-28 04:01:33 +00:00
Bump bumpalo (#1925)
* Fix typo in comment * Bump `bumpalo` dependency to 3.0.0 * Fix warning about unused loop label
This commit is contained in:
committed by
Alex Crichton
parent
580daab1d3
commit
36afba74d4
@ -16,7 +16,7 @@ spans = []
|
||||
extra-traits = ["syn/extra-traits"]
|
||||
|
||||
[dependencies]
|
||||
bumpalo = "2.1"
|
||||
bumpalo = "3.0.0"
|
||||
lazy_static = "1.0.0"
|
||||
log = "0.4"
|
||||
proc-macro2 = "1.0"
|
||||
|
@ -64,8 +64,8 @@ impl Interner {
|
||||
fn intern_str(&self, s: &str) -> &str {
|
||||
// NB: eventually this could be used to intern `s` to only allocate one
|
||||
// copy, but for now let's just "transmute" `s` to have the same
|
||||
// lifetmie as this struct itself (which is our main goal here)
|
||||
bumpalo::collections::String::from_str_in(s, &self.bump).into_bump_str()
|
||||
// lifetime as this struct itself (which is our main goal here)
|
||||
self.bump.alloc_str(s)
|
||||
}
|
||||
|
||||
/// Given an import to a local module `id` this generates a unique module id
|
||||
|
Reference in New Issue
Block a user