Skip to content

Commit

Permalink
[eclipse-iceoryx#264] Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Sep 9, 2024
1 parent ebd9c2a commit 62e082b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions iceoryx2-cal/src/static_storage/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
//!
//! let mut content = "some storage content".to_string();
//! let custom_config = Configuration::default()
//! .suffix(FileName::new(b".conifg").unwrap())
//! .path_hint(Path::new(b"/tmp").unwrap());
//! .suffix(&FileName::new(b".conifg").unwrap())
//! .path_hint(&Path::new(b"/tmp").unwrap());
//!
//! let storage_name = FileName::new(b"myStaticStorage").unwrap();
//! let owner = Builder::new(&storage_name)
Expand Down
8 changes: 4 additions & 4 deletions iceoryx2/src/service/config_scheme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub(crate) fn dynamic_config_storage_config<Service: crate::service::Service>(
<<Service::DynamicStorage as NamedConceptMgmt>::Configuration>::default()
.prefix(&global_config.global.prefix)
.suffix(&global_config.global.service.dynamic_config_storage_suffix)
.path_hint(&global_config.global.root_path())
.path_hint(global_config.global.root_path())
}

pub(crate) fn static_config_storage_config<Service: crate::service::Service>(
Expand All @@ -45,7 +45,7 @@ pub(crate) fn connection_config<Service: crate::service::Service>(
<<Service::Connection as NamedConceptMgmt>::Configuration>::default()
.prefix(&global_config.global.prefix)
.suffix(&global_config.global.service.connection_suffix)
.path_hint(&global_config.global.root_path())
.path_hint(global_config.global.root_path())
}

pub(crate) fn event_config<Service: crate::service::Service>(
Expand All @@ -54,7 +54,7 @@ pub(crate) fn event_config<Service: crate::service::Service>(
<<Service::Event as NamedConceptMgmt>::Configuration>::default()
.prefix(&global_config.global.prefix)
.suffix(&global_config.global.service.event_connection_suffix)
.path_hint(&global_config.global.root_path())
.path_hint(global_config.global.root_path())
}

pub(crate) fn data_segment_config<Service: crate::service::Service>(
Expand All @@ -63,7 +63,7 @@ pub(crate) fn data_segment_config<Service: crate::service::Service>(
<<Service::SharedMemory as NamedConceptMgmt>::Configuration>::default()
.prefix(&global_config.global.prefix)
.suffix(&global_config.global.service.publisher_data_segment_suffix)
.path_hint(&global_config.global.root_path())
.path_hint(global_config.global.root_path())
}

pub(crate) fn node_monitoring_config<Service: crate::service::Service>(
Expand Down

0 comments on commit 62e082b

Please sign in to comment.