diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml new file mode 100644 index 0000000..0a3558a --- /dev/null +++ b/.github/workflows/clippy.yml @@ -0,0 +1,15 @@ +name: Clippy + +on: + pull_request: + +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + clippy_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run Clippy + run: cargo clippy diff --git a/rupring_example/src/domains/users/service.rs b/rupring_example/src/domains/users/service.rs index eaffb8e..9456309 100644 --- a/rupring_example/src/domains/users/service.rs +++ b/rupring_example/src/domains/users/service.rs @@ -180,6 +180,6 @@ mod tests { } #[rupring::Injectable] -fn inject_user_service(repository: Arc) -> Arc { - Arc::new(UserService::new(repository)) +fn inject_user_service(repository: Arc) -> Box { + Box::new(UserService::new(repository)) }