Browse Source

Replace unwrap with if let

add-osctime-alias-for-time-tags
Andreas Linz 1 year ago
parent
commit
e9d0047054
Signed by: alinz GPG Key ID: 9BF39809C9DA580C
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/encoder.rs

+ 2
- 2
src/encoder.rs View File

@ -39,8 +39,8 @@ fn encode_message(msg: &OscMessage) -> Result> {
let (bytes, tags): (Option<Vec<u8>>, String) = encode_arg(arg)?;
type_tags.extend(tags.chars());
if bytes.is_some() {
arg_bytes.extend(bytes.unwrap());
if let Some(data) = bytes {
arg_bytes.extend(data);
}
}
}

Loading…
Cancel
Save