Browse Source

Fix warnings

tags/v0.0.0-test-pr-120
Philipp Oppermann 3 years ago
parent
commit
ecac6d6f4c
Failed to extract signature
2 changed files with 5 additions and 3 deletions
  1. +2
    -2
      binaries/cli/src/template/python/mod.rs
  2. +3
    -1
      libraries/communication-layer/src/lib.rs

+ 2
- 2
binaries/cli/src/template/python/mod.rs View File

@@ -14,10 +14,10 @@ pub fn create(args: crate::CommandNew) -> eyre::Result<()> {
}
}

fn create_operator(name: String, path: Option<PathBuf>) -> Result<(), eyre::ErrReport> {
fn create_operator(_name: String, _path: Option<PathBuf>) -> Result<(), eyre::ErrReport> {
todo!()
}

fn create_custom_node(name: String, path: Option<PathBuf>) -> Result<(), eyre::ErrReport> {
fn create_custom_node(_name: String, _path: Option<PathBuf>) -> Result<(), eyre::ErrReport> {
todo!()
}

+ 3
- 1
libraries/communication-layer/src/lib.rs View File

@@ -13,7 +13,7 @@
//! based on shared memory. It is very fast, but it only supports local communication. To use
//! iceoryx, use the [`IceoryxCommunicationLayer`][iceoryx::IceoryxCommunicationLayer] struct.

use std::{borrow::Cow, fmt::Debug};
use std::borrow::Cow;

#[cfg(all(unix, feature = "iceoryx"))]
pub mod iceoryx;
@@ -85,6 +85,8 @@ pub trait Subscriber: Send + Sync {
fn recv(&mut self) -> Result<Option<Box<dyn ReceivedSample>>, BoxError>;
}

/// A message received from the communication layer.
pub trait ReceivedSample: Send + Sync {
/// Access the message's data.
fn get(&self) -> Cow<[u8]>;
}

Loading…
Cancel
Save