rustfmt
This commit is contained in:
@@ -9,13 +9,12 @@ pub struct Queue {
|
||||
impl Queue {
|
||||
pub fn new() -> Queue {
|
||||
Queue {
|
||||
queue: VecDeque::new()
|
||||
queue: VecDeque::new(),
|
||||
}
|
||||
}
|
||||
pub fn enqueue(&mut self, track: FullTrack) {
|
||||
self.queue.push_back(track);
|
||||
}
|
||||
|
||||
pub fn dequeue(&mut self) -> Option<FullTrack> {
|
||||
self.queue.pop_front()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user