Skip to content

Commit

Permalink
ci: fix checker
Browse files Browse the repository at this point in the history
  • Loading branch information
daxartio committed Nov 29, 2023
1 parent 11a7bf6 commit b00d4d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ all: fmt check test docs
.PHONY: check
check:
cargo fmt --all -- --check
cargo clippy -- -D warnings
cargo clippy --all-features --all-targets -- -D warnings

.PHONY: test
test:
cargo test
cargo test --all-features

.PHONY: fmt
fmt:
Expand Down
6 changes: 3 additions & 3 deletions tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ mod backend {
}

#[async_trait]
impl<'a> DequeuBackend<i32, (), ()> for MemBackend {
impl DequeuBackend<i32, (), ()> for MemBackend {
async fn dequeue(&self, _score: &()) -> Result<Vec<i32>, ()> {
Ok(vec![*self.queue.lock().unwrap().borrow().first().unwrap()])
}
}

#[async_trait]
impl<'a> EnqueuBackend<i32, (), ()> for MemBackend {
impl EnqueuBackend<i32, (), ()> for MemBackend {
async fn enqueue(&self, task: &i32, _score: &()) -> Result<(), ()> {
self.queue.lock().unwrap().borrow_mut().push(*task);
Ok(())
}
}

#[async_trait]
impl<'a> CommitBackend<i32, ()> for MemBackend {
impl CommitBackend<i32, ()> for MemBackend {
async fn commit(&self, task: &i32) -> Result<(), ()> {
self.queue
.lock()
Expand Down

0 comments on commit b00d4d8

Please sign in to comment.