diff --git a/.github/workflows/block-fixup.yml b/.github/workflows/block-fixup.yml index 2eba9fc..bd4bb7c 100644 --- a/.github/workflows/block-fixup.yml +++ b/.github/workflows/block-fixup.yml @@ -7,7 +7,7 @@ jobs: block-fixup: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Block fixup commit merge uses: 13rac1/block-fixup-merge-action@v2.0.0 @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'pull_request' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-python@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc8b137..65398b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,13 +16,13 @@ jobs: strategy: matrix: rust: - - 1.60.0 + - 1.70.0 - stable - beta steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: actions-rs/toolchain@v1 with: @@ -46,7 +46,7 @@ jobs: # Prevent sudden announcement of a new advisory from failing ci: continue-on-error: ${{ matrix.checks == 'advisories' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: cargo-deny uses: EmbarkStudios/cargo-deny-action@v1 with: @@ -57,10 +57,10 @@ jobs: name: format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: - toolchain: 1.60.0 + toolchain: 1.70.0 - run: rustup component add rustfmt - name: cargo-fmt uses: actions-rs/cargo@v1 @@ -75,12 +75,12 @@ jobs: strategy: matrix: rust: - - 1.60.0 + - 1.70.0 - stable - beta steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install toolchain uses: actions-rs/toolchain@v1 with: @@ -98,10 +98,10 @@ jobs: name: clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: - toolchain: 1.60.0 + toolchain: 1.70.0 override: true - uses: swatinem/rust-cache@v2 - run: rustup component add clippy diff --git a/src/lib.rs b/src/lib.rs index cce6418..d4b03cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,17 +45,17 @@ mod supported { let mut drop = privdrop::PrivDrop::default(); if let Some(user) = self.user { - drop = drop.user(&user); + drop = drop.user(user); } if let Some(group) = self.group { - drop = drop.group(&group); + drop = drop.group(group); } #[cfg(feature = "chroot")] { if let Some(chroot) = self.chroot { - drop = drop.chroot(&chroot); + drop = drop.chroot(chroot); } }