Skip to content

Commit

Permalink
Replace memoffset::offset_of! with core::mem::offset_of! (#29)
Browse files Browse the repository at this point in the history
Closes #9
  • Loading branch information
rj00a authored Mar 22, 2024
1 parent 9e7eedd commit a629e4c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ hashbrown = { version = "0.14.3", default-features = false, features = [
"inline-more",
] }
indexmap = { version = "2.2.3", default-features = false }
memoffset = "0.9.0"
rayon = { version = "1.8.1", optional = true }
slab = "0.4.9"

Expand Down
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use alloc::{format, vec, vec::Vec};
use core::alloc::Layout;
use core::any::TypeId;
use core::marker::PhantomData;
use core::mem::offset_of;
use core::num::NonZeroU32;
use core::ops::{Deref, DerefMut, Index};
use core::panic::{RefUnwindSafe, UnwindSafe};
Expand All @@ -15,7 +16,6 @@ use core::{any, fmt};
use bumpalo::Bump;
use evenio_macros::all_tuples;
pub use evenio_macros::Event;
use memoffset::offset_of;

use crate::access::Access;
use crate::archetype::Archetype;
Expand Down
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ pub mod world;
#[cfg_attr(docsrs, doc(cfg(feature = "rayon")))]
pub use rayon;

/// For macros only.
#[doc(hidden)]
pub mod __private {
pub use memoffset::offset_of;
}

/// Re-exports of the most commonly used items in the library.
///
/// This is intended to be glob-imported like so:
Expand Down

0 comments on commit a629e4c

Please sign in to comment.