diff --git a/rust/src/lib.rs b/rust/src/lib.rs index d06a0b2..c9e03cd 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -1,4 +1,4 @@ pub mod arrays; +pub mod queue; pub mod searching; pub mod sorting; -pub mod queue; diff --git a/rust/src/queue.rs b/rust/src/queue.rs index c3ab740..04229ed 100644 --- a/rust/src/queue.rs +++ b/rust/src/queue.rs @@ -2,7 +2,7 @@ pub struct Queue { items: Vec, start: usize, size: usize, - capacity: usize + capacity: usize, } impl Queue { @@ -24,14 +24,14 @@ mod tests { items: Vec::new(), start: 0, size: 0, - capacity: 1 + capacity: 1, }; static FULL_INT_QUEUE: Lazy> = Lazy::new(|| Queue { items: vec![0], start: 0, size: 1, - capacity: 1 + capacity: 1, }); #[test]