1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 19:42:03 +02:00

core API: move spotify_id to lib.rs

This commit is contained in:
awiouy 2018-02-12 21:02:27 +01:00
parent 6a9084b00c
commit 4c2b641cad
11 changed files with 67 additions and 69 deletions

View file

@ -5,7 +5,7 @@ use futures::sync::oneshot;
use std::collections::HashMap;
use std::io::Write;
use util::{FileId, SpotifyId};
use spotify_id::{FileId, SpotifyId};
use util::SeqGenerator;
#[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)]

View file

@ -6,7 +6,7 @@ use std::path::Path;
use std::path::PathBuf;
use authentication::Credentials;
use util::FileId;
use spotify_id::FileId;
#[derive(Clone)]
pub struct Cache {

View file

@ -44,5 +44,6 @@ pub mod diffie_hellman;
pub mod keymaster;
pub mod mercury;
pub mod session;
pub mod spotify_id;
pub mod util;
pub mod version;

View file

@ -6,10 +6,8 @@ use std::mem;
use std::ops::{Mul, Rem, Shr};
mod int128;
mod spotify_id;
pub use util::int128::u128;
pub use util::spotify_id::{FileId, SpotifyId};
pub fn rand_vec<G: Rng, R: Rand>(rng: &mut G, size: usize) -> Vec<R> {
rng.gen_iter().take(size).collect()