derive Copy for Queue

This commit is contained in:
tali 2023-04-11 19:11:43 -04:00
parent 2a53e992ae
commit a0aaba461d
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
//! queues that have the same two pieces immediately available, by automatically moving
//! the front of the queue into the hold slot if the hold slot would be empty.
#[derive(Clone, Eq, PartialEq, Debug)]
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub struct Queue<'a, T: Copy> {
pub hold: Option<T>,
pub next: &'a [T],