Skip to content

Commit 18f56f6

Browse files
authored
remove result handling for eCAL_Subscriber_SetReceiveCallback (#70)
1 parent 8ae2d57 commit 18f56f6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rustecal-pubsub/src/subscriber.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,14 @@ impl Subscriber {
6969
return Err("Failed to create eCAL_Subscriber".into());
7070
}
7171

72-
let result = unsafe {
72+
unsafe {
7373
eCAL_Subscriber_SetReceiveCallback(
7474
handle,
7575
Some(callback),
7676
ptr::null_mut(),
7777
)
7878
};
7979

80-
if result != 0 {
81-
return Err("Failed to set receive callback".into());
82-
}
83-
8480
Ok(Self {
8581
handle,
8682
_encoding: c_encoding,

0 commit comments

Comments
 (0)