Update twilight support to twilight 0.11 (#132)
* update twilight support to twilight 0.11 * rustfmt
This commit is contained in:
@@ -105,11 +105,7 @@ impl Songbird {
|
||||
{
|
||||
Self {
|
||||
client_data: PRwLock::new(ClientData {
|
||||
shard_count: cluster
|
||||
.config()
|
||||
.shard_scheme()
|
||||
.total()
|
||||
.unwrap_or_else(|| cluster.shards().len() as u64),
|
||||
shard_count: cluster.config().shard_scheme().total(),
|
||||
initialised: true,
|
||||
user_id: user_id.into(),
|
||||
}),
|
||||
|
||||
@@ -24,8 +24,9 @@ impl fmt::Display for TrackError {
|
||||
write!(f, "failed to operate on track (handle): ")?;
|
||||
match self {
|
||||
TrackError::Finished => write!(f, "track ended"),
|
||||
TrackError::InvalidTrackEvent =>
|
||||
write!(f, "given event listener can't be fired on a track"),
|
||||
TrackError::InvalidTrackEvent => {
|
||||
write!(f, "given event listener can't be fired on a track")
|
||||
},
|
||||
TrackError::SeekUnsupported => write!(f, "track did not support seeking"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user