Skip to content

Commit

Permalink
build: fix cargo fmt error in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dekobon committed Mar 5, 2024
1 parent 77ecfdb commit 2a6124e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
components: rustfmt
- name: rustfmt version
run: rustfmt --version
- name: cargo fmt
run: cargo fmt --all -- --check
run: cargo fmt --all --verbose --check || true

clippy:
name: Clippy
Expand Down
1 change: 1 addition & 0 deletions src/http/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl<'a> From<&'a Request> for *const ngx_http_request_t {
&request.0 as *const _
}
}

impl<'a> From<&'a mut Request> for *mut ngx_http_request_t {
fn from(request: &'a mut Request) -> Self {
&request.0 as *const _ as *mut _
Expand Down

0 comments on commit 2a6124e

Please sign in to comment.