Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter committed Jul 16, 2024
1 parent 44d00e1 commit 873918d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/examples/z_posix_shm_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ fn main() {
let provider_alignment = AllocAlignment::default();

// A layout for POSIX Provider's memory
let provider_layout =
MemoryLayout::new(size.try_into().unwrap(), provider_alignment).unwrap();
let provider_layout = MemoryLayout::new(size, provider_alignment).unwrap();

// Build a provider backend
PosixShmProviderBackend::builder()
Expand Down

0 comments on commit 873918d

Please sign in to comment.