Skip to content

Commit

Permalink
[#498] Rewrite code for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Nov 2, 2024
1 parent f05cfb4 commit 6deb81b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 1 addition & 7 deletions doc/release-notes/iceoryx2-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,4 @@
}
```

2. Removed `payload_type_layout` from pub/sub header.

```rust
// old
let sample = publisher.loan()?;
sample.header().payload_type_layout();
```
2. Removed `payload_type_layout()` from `publish_subscribe::Header`.
4 changes: 3 additions & 1 deletion iceoryx2/tests/subscriber_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ mod subscriber {
#[test]
#[should_panic]
#[cfg(debug_assertions)]
fn subscriber_with_custom_payload_details_panics_when_calling_receive<Sut: Service>() {
fn subscriber_with_custom_payload_details_panics_when_calling_non_custom_receive<
Sut: Service,
>() {
const TYPE_SIZE_OVERRIDE: usize = 128;
let service_name = generate_name();
let config = generate_isolated_config();
Expand Down

0 comments on commit 6deb81b

Please sign in to comment.