Skip to content

Commit

Permalink
Add clippy for apps directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofei0800 committed Nov 23, 2023
1 parent 55ff618 commit 6e2f410
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
with:
submodules: 'recursive'

- name: Update rust
run: |
rustup update
- name: Code format check
run: cargo fmt --check

Expand All @@ -29,7 +33,9 @@ jobs:
run: cargo build --all --verbose

- name: Code lint check
run: cargo clippy
run: |
cargo clippy
cd apps && cargo clippy
- name: Unit testing
run: cargo test --verbose
Expand Down
2 changes: 1 addition & 1 deletion apps/src/bin/tquic_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ struct ConnectionHandler {
impl ConnectionHandler {
fn generate_file_path(uri: &str, root: &str) -> path::PathBuf {
let uri = path::Path::new(uri);
let mut path = path::PathBuf::from(root.clone());
let mut path = path::PathBuf::from(root);

for c in uri.components() {
if let path::Component::Normal(v) = c {
Expand Down

0 comments on commit 6e2f410

Please sign in to comment.