Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow committed Dec 24, 2024
1 parent c4ae358 commit cf9f836
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
34 changes: 2 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ jobs:
run: |
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-check-http"
- name: Clear the cargo caches
run: |
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
cargo-cache
check_web:
strategy:
matrix:
Expand Down Expand Up @@ -96,11 +91,6 @@ jobs:
run: |
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-check-web"
- name: Clear the cargo caches
run: |
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
cargo-cache
check_client:
strategy:
matrix:
Expand Down Expand Up @@ -143,11 +133,6 @@ jobs:
run: |
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-check-client"
- name: Clear the cargo caches
run: |
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
cargo-cache
check_other:
strategy:
matrix:
Expand Down Expand Up @@ -188,12 +173,7 @@ jobs:
- name: check-linux
if: matrix.target.os == 'ubuntu-latest'
run: |
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-check-other"
- name: Clear the cargo caches
run: |
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
cargo-cache
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-check-other"
test_linux:
strategy:
Expand Down Expand Up @@ -250,11 +230,6 @@ jobs:
run: |
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test-test"
- name: Clear the cargo caches
run: |
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
cargo-cache
check_examples:
strategy:
matrix:
Expand Down Expand Up @@ -300,9 +275,4 @@ jobs:
- name: check-linux
if: matrix.target.os == 'ubuntu-latest'
run: |
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && cd examples && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-check-examples"
- name: Clear the cargo caches
run: |
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
cargo-cache
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && cd examples && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-check-examples"
2 changes: 1 addition & 1 deletion client/src/http_tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod marker {
pub struct Connect;
}

impl<'a> HttpTunnelRequest<'a> {
impl HttpTunnelRequest<'_> {
/// Send the request and wait for response asynchronously.
pub async fn send(self) -> Result<Tunnel<HttpTunnel>, Error> {
let res = self._send().await?;
Expand Down
2 changes: 1 addition & 1 deletion client/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mod marker {
pub struct Http;
}

impl<'a> RequestBuilder<'a, marker::Http> {
impl RequestBuilder<'_, marker::Http> {
/// Set HTTP method of this request.
#[inline]
pub fn method(mut self, method: Method) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion client/src/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub type WebSocketSink<'a> = TunnelSink<'a, WebSocketTunnel>;
/// [Stream] trait is used to asynchronously receive message.
pub type WebSocketReader<'a> = TunnelStream<'a, WebSocketTunnel>;

impl<'a> WsRequest<'a> {
impl WsRequest<'_> {
/// Send the request and wait for response asynchronously.
pub async fn send(mut self) -> Result<WebSocket, Error> {
http_ws::client_request_extend(&mut self.req);
Expand Down

0 comments on commit cf9f836

Please sign in to comment.