From f31d2cf904085e1708746f9be6f2ae2a1dd63c6d Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Tue, 3 Aug 2021 20:26:03 +0300 Subject: [PATCH] Fix warnings from Clippy & GitHub JSON schema Clippy: > this expression borrows a reference (`&acl::PosixACL`) that is immediately dereferenced by the compiler --- .github/workflows/tests.yml | 4 ++-- src/acl.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 760ce43..aab20ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,8 +4,8 @@ on: branches: [master] pull_request: schedule: - # 16:18 UTC on Tuesdays - - cron: "18 16 * * tue" + # 16:38 UTC on Tuesdays + - cron: "38 16 * * TUE" repository_dispatch: types: [tests] diff --git a/src/acl.rs b/src/acl.rs index c15c884..b4e8574 100644 --- a/src/acl.rs +++ b/src/acl.rs @@ -151,7 +151,7 @@ impl PosixACL { /// Iterator of `acl_entry_t`, unsafe pub(crate) unsafe fn raw_iter(&self) -> RawACLIterator { - RawACLIterator::new(&self) + RawACLIterator::new(self) } /// Get all ACLEntry items. The POSIX ACL C API does not allow multiple parallel iterators so we