Skip to content

Commit

Permalink
Format Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
opixelum committed Dec 14, 2023
1 parent eeb5719 commit eac510f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod arrays;
pub mod queue;
pub mod searching;
pub mod sorting;
pub mod queue;
6 changes: 3 additions & 3 deletions rust/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub struct Queue<T> {
items: Vec<T>,
start: usize,
size: usize,
capacity: usize
capacity: usize,
}

impl<T> Queue<T> {
Expand All @@ -24,14 +24,14 @@ mod tests {
items: Vec::new(),
start: 0,
size: 0,
capacity: 1
capacity: 1,
};

static FULL_INT_QUEUE: Lazy<Queue<i8>> = Lazy::new(|| Queue {
items: vec![0],
start: 0,
size: 1,
capacity: 1
capacity: 1,
});

#[test]
Expand Down

0 comments on commit eac510f

Please sign in to comment.