Skip to content

Commit

Permalink
Remove deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Dec 28, 2015
1 parent a2db315 commit 09e180b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![crate_name = "librespot"]

#![feature(plugin,zero_one,iter_arith,slice_bytes,mpsc_select)]
#![feature(plugin,zero_one,iter_arith,slice_bytes,mpsc_select,clone_from_slice)]

#![plugin(protobuf_macros)]
#[macro_use] extern crate lazy_static;
Expand Down
7 changes: 3 additions & 4 deletions src/metadata.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use eventual::Async;
use protobuf::{self, Message};
use protobuf;
use std::any::{Any, TypeId};
use std::collections::HashMap;
use std::fmt;
use std::slice::bytes::copy_memory;
use std::sync::{Arc, Condvar, Mutex, MutexGuard, Weak};
use std::thread;

Expand Down Expand Up @@ -35,7 +34,7 @@ impl MetadataTrait for Track {
files: msg.get_file().iter()
.map(|file| {
let mut dst = [0u8; 20];
copy_memory(&file.get_file_id(), &mut dst);
dst.clone_from_slice(&file.get_file_id());
FileId(dst)
})
.collect(),
Expand Down Expand Up @@ -67,7 +66,7 @@ impl MetadataTrait for Album {
covers: msg.get_cover_group().get_image().iter()
.map(|image| {
let mut dst = [0u8; 20];
copy_memory(&image.get_file_id(), &mut dst);
dst.clone_from_slice(&image.get_file_id());
FileId(dst)
})
.collect(),
Expand Down

0 comments on commit 09e180b

Please sign in to comment.