From 235015870c564f6b2ca9c54cbe42e1426eb018de Mon Sep 17 00:00:00 2001 From: Finn Bear Date: Sun, 14 Jul 2024 13:12:24 -0700 Subject: [PATCH] Release 0.6.3. --- Cargo.toml | 4 ++-- bitcode_derive/Cargo.toml | 2 +- bitcode_derive/src/attribute.rs | 7 ++++--- src/buffer.rs | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f8de280..e346d25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ [package] name = "bitcode" authors = [ "Cai Bear", "Finn Bear" ] -version = "0.6.2" +version = "0.6.3" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/SoftbearStudios/bitcode" @@ -15,7 +15,7 @@ exclude = ["fuzz/"] [dependencies] arrayvec = { version = "0.7", default-features = false, optional = true } -bitcode_derive = { version = "0.6.2", path = "./bitcode_derive", optional = true } +bitcode_derive = { version = "0.6.3", path = "./bitcode_derive", optional = true } bytemuck = { version = "1.14", features = [ "min_const_generics", "must_cast" ] } glam = { version = ">=0.21", default-features = false, optional = true } serde = { version = "1.0", default-features = false, features = [ "alloc" ], optional = true } diff --git a/bitcode_derive/Cargo.toml b/bitcode_derive/Cargo.toml index cb3cbcf..3198fa7 100644 --- a/bitcode_derive/Cargo.toml +++ b/bitcode_derive/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bitcode_derive" authors = [ "Cai Bear", "Finn Bear" ] -version = "0.6.2" +version = "0.6.3" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/SoftbearStudios/bitcode/" diff --git a/bitcode_derive/src/attribute.rs b/bitcode_derive/src/attribute.rs index 605ddf0..9480547 100644 --- a/bitcode_derive/src/attribute.rs +++ b/bitcode_derive/src/attribute.rs @@ -41,11 +41,12 @@ impl BitcodeAttr { _ => return err(&expr, "expected path string e.g. \"my_crate::bitcode\""), }; - let mut path = syn::parse_str::(&str_lit.value()) + let path = syn::parse_str::(&str_lit.value()) .map_err(|e| error(str_lit, &e.to_string()))?; - // ensure there's a leading `::` - path.leading_colon = Some(Token![::](str_lit.span())); + // previus: ensure there's a leading `::` + // removed: https://github.com/SoftbearStudios/bitcode/pull/28#issuecomment-2227465515 + // path.leading_colon = Some(Token![::](str_lit.span())); Ok(Self::CrateAlias(path)) } diff --git a/src/buffer.rs b/src/buffer.rs index b1b8039..ddb2347 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -192,7 +192,7 @@ mod tests { fn erased_box() { use alloc::sync::Arc; let rc = Arc::new(()); - struct TestDrop(Arc<()>); + struct TestDrop(#[allow(unused)] Arc<()>); let b = unsafe { ErasedBox::new(TestDrop(Arc::clone(&rc))) }; assert_eq!(Arc::strong_count(&rc), 2); drop(b);