Browse Source

Suppress error output

Maybe I should return a `SioResult` in this situation? But, if
the pointer is not null, the conversion function should only fail
if the string content is not valif UTF-8 which is almost never the case
for a name of output stream.
master
Andreas Linz 5 years ago
parent
commit
e8cee9fced
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/stream.rs

+ 1
- 4
src/stream.rs View File

@ -404,10 +404,7 @@ impl<'a> OutStream<'a> {
if !s_ptr.is_null() {
match ffi::utils::ptr_to_string(s_ptr) {
Ok(s) => Some(s),
Err(e) => {
println!("err: {}", e);
None
}
Err(_) => None,
}
} else {
None

Loading…
Cancel
Save