Browse Source

Pass non-mutable borrow

pull/1/head
Andreas Linz 5 years ago
parent
commit
8ab94eabda
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/receiver.rs

+ 1
- 1
examples/receiver.rs View File

@ -25,7 +25,7 @@ fn main() {
match sock.recv_from(&mut buf) {
Ok((size, addr)) => {
println!("Received packet with size {} from: {}", size, addr);
let packet = rosc::decoder::decode(&mut buf).unwrap();
let packet = rosc::decoder::decode(&buf).unwrap();
handle_packet(packet);
}
Err(e) => {

Loading…
Cancel
Save