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 authored and xiaofeiiiyu committed Nov 23, 2023
1 parent 55ff618 commit f337d50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
with:
submodules: 'recursive'

- name: Update rust
run: rustup update

- name: Code format check
run: cargo fmt --check

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

- name: Code lint check
run: cargo clippy
run: cargo clippy --all -- -D warnings

- 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 f337d50

Please sign in to comment.