Skip to content

Commit ff0107b

Browse files
committed
🐛 Remove dependency to std
1 parent 8b8cc9f commit ff0107b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitfield-struct"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
edition = "2021"
55
authors = ["Lars Wrenger <lars@wrenger.net>"]
66
description = "Procedural macro for bitfields."

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ fn bitfield_inner(args: TokenStream, input: TokenStream) -> syn::Result<TokenStr
293293
let bits = m.bits;
294294
let msg = format!("overflowing field type of '{}'", m.ident);
295295
Some(quote!(
296-
const _: () = assert!(#bits <= 8 * std::mem::size_of::<usize>(), #msg);
296+
const _: () = assert!(#bits <= 8 * core::mem::size_of::<usize>(), #msg);
297297
))
298298
} else {
299299
None

0 commit comments

Comments
 (0)