Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eclipse-zenoh/zenoh
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7a2b87a042a72582228a3bd03f5b79da4ade579e
Choose a base ref
..
head repository: eclipse-zenoh/zenoh
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cae04c33103e21c49d3cfcb38c6234d94b7c7c55
Choose a head ref
Showing with 0 additions and 12 deletions.
  1. +0 −12 zenoh/src/api/sample.rs
12 changes: 0 additions & 12 deletions zenoh/src/api/sample.rs
Original file line number Diff line number Diff line change
@@ -289,18 +289,6 @@ pub struct Sample {
pub(crate) attachment: Option<ZBytes>,
}

pub trait WithFields {
type Fields;
fn fields(self) -> Self::Fields;
}

impl WithFields for Sample {
type Fields = SampleFields;
fn fields(self) -> Self::Fields {
self.into()
}
}

impl Sample {
/// Gets the key expression on which this Sample was published.
#[inline]