Skip to content

Commit

Permalink
Make the ownership markers unit structs
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed May 8, 2024
1 parent 7915453 commit a0e0356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/std/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ pub trait Ownership: sealed::Sealed + 'static {}

impl<T> Ownership for T where T: sealed::Sealed {}

pub struct Owned {}
pub struct Owned;

pub struct Borrowed {}
pub struct Borrowed;

/// Describes some data allocated in Wasm's linear memory.
/// A pointer to an instance of this can be returned over FFI boundaries.
Expand Down

0 comments on commit a0e0356

Please sign in to comment.