From b00d4d87dbbbcc7ade566cf4ebc0265d14f0da11 Mon Sep 17 00:00:00 2001 From: Danil Akhtarov Date: Wed, 29 Nov 2023 18:10:41 +0300 Subject: [PATCH] ci: fix checker --- Makefile | 4 ++-- tests/main.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f292d27..be30857 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/tests/main.rs b/tests/main.rs index b28f6ff..b39b6e8 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -25,14 +25,14 @@ mod backend { } #[async_trait] - impl<'a> DequeuBackend for MemBackend { + impl DequeuBackend for MemBackend { async fn dequeue(&self, _score: &()) -> Result, ()> { Ok(vec![*self.queue.lock().unwrap().borrow().first().unwrap()]) } } #[async_trait] - impl<'a> EnqueuBackend for MemBackend { + impl EnqueuBackend for MemBackend { async fn enqueue(&self, task: &i32, _score: &()) -> Result<(), ()> { self.queue.lock().unwrap().borrow_mut().push(*task); Ok(()) @@ -40,7 +40,7 @@ mod backend { } #[async_trait] - impl<'a> CommitBackend for MemBackend { + impl CommitBackend for MemBackend { async fn commit(&self, task: &i32) -> Result<(), ()> { self.queue .lock()