Skip to content

Commit

Permalink
Release 0.6.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Jul 14, 2024
1 parent 497052e commit 2350158
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion bitcode_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down
7 changes: 4 additions & 3 deletions bitcode_derive/src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ impl BitcodeAttr {
_ => return err(&expr, "expected path string e.g. \"my_crate::bitcode\""),
};

let mut path = syn::parse_str::<Path>(&str_lit.value())
let path = syn::parse_str::<Path>(&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))
}
Expand Down
2 changes: 1 addition & 1 deletion src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2350158

Please sign in to comment.