Driver: Move Bitrate import out of crate root. (#53)

This is a simple organisational change which moves `crate::Bitrate` to `crate::driver::Bitrate` to slightly clean up the crate root.

This has been tested using `cargo make ready`.
This commit is contained in:
Kyle Simpson
2021-04-04 19:41:34 +01:00
parent 1fc3dc2259
commit 1bfee1b989
5 changed files with 5 additions and 9 deletions

View File

@@ -27,12 +27,12 @@ use serenity::{
};
use songbird::{
driver::Bitrate,
input::{
self,
cached::{Compressed, Memory},
Input,
},
Bitrate,
Call,
Event,
EventContext,

View File

@@ -32,7 +32,8 @@ use crate::{
Event,
EventHandler,
};
use audiopus::Bitrate;
/// Opus encoder bitrate settings.
pub use audiopus::{self as opus, Bitrate};
use core::{
future::Future,
pin::Pin,

View File

@@ -1,10 +1,9 @@
#![allow(missing_docs)]
use crate::{
driver::{connection::error::Error, Config},
driver::{connection::error::Error, Bitrate, Config},
events::EventData,
tracks::Track,
Bitrate,
ConnectionInfo,
};
use flume::Sender;

View File

@@ -3,9 +3,8 @@
use super::{Interconnect, UdpRxMessage, UdpTxMessage, WsMessage};
use crate::{
driver::{Config, CryptoState},
driver::{Bitrate, Config, CryptoState},
tracks::Track,
Bitrate,
};
use flume::Sender;
use xsalsa20poly1305::XSalsa20Poly1305 as Cipher;

View File

@@ -63,9 +63,6 @@ pub mod tracks;
#[cfg(feature = "driver-core")]
mod ws;
#[cfg(feature = "driver-core")]
/// Opus encoder bitrate settings.
pub use audiopus::{self as opus, Bitrate};
#[cfg(feature = "driver-core")]
pub use discortp as packet;
#[cfg(feature = "driver-core")]