Skip to content

Commit

Permalink
Merge pull request #212 from myyrakle/feat/#211
Browse files Browse the repository at this point in the history
[#211] clippy workflow 추가
  • Loading branch information
myyrakle authored Jan 2, 2025
2 parents 1be2070 + 2372b46 commit 13d4168
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions rupring_example/src/domains/users/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ mod tests {
}

#[rupring::Injectable]
fn inject_user_service(repository: Arc<dyn IUserRepository>) -> Arc<dyn IUserService> {
Arc::new(UserService::new(repository))
fn inject_user_service(repository: Arc<dyn IUserRepository>) -> Box<dyn IUserService> {
Box::new(UserService::new(repository))
}

0 comments on commit 13d4168

Please sign in to comment.