Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clippy for all directories. #47

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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