Skip to content

Commit

Permalink
do not include zenoh_result::Error in Other AllocError - this reduces…
Browse files Browse the repository at this point in the history
… allocation result's size and fixes eclipse-zenoh/zenoh-c#740 (#1559)
  • Loading branch information
yellowhatter authored Oct 23, 2024
1 parent f264361 commit 1576c77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commons/zenoh-shm/src/api/provider/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ pub enum ZAllocError {
/// The provider is out of memory.
OutOfMemory,
/// Uncategorized allocation error.
Other(zenoh_result::Error),
Other,
}

impl From<zenoh_result::Error> for ZAllocError {
fn from(value: zenoh_result::Error) -> Self {
Self::Other(value)
fn from(_value: zenoh_result::Error) -> Self {
Self::Other
}
}

Expand Down

0 comments on commit 1576c77

Please sign in to comment.