File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 29
29
run : docker run --rm posixacl-nightly cargo test --color=always
30
30
# Run sanitizer checks. Only allowed on Rust nightly. https://github.com/japaric/rust-san
31
31
# Cannot run sanitizers from Dockerfile, CAP_PTRACE is disallowed :(
32
- # DISABLED TEMPORARILY due to https://github.com/rust-lang/rust/issues/111073
33
- # - name: LeakSanitizer
34
- # run: docker run --rm --env RUSTFLAGS="-Z sanitizer=leak" posixacl-nightly cargo test --color=always
32
+ - name : LeakSanitizer
33
+ run : docker run --rm --env RUSTFLAGS="-Z sanitizer=leak" posixacl-nightly cargo test --color=always
35
34
- name : AddressSanitizer
36
35
# --tests to omit doc tests, doesn't play nice with AddressSanitizer
37
36
run : docker run --rm --env RUSTFLAGS="-Z sanitizer=address" posixacl-nightly cargo test --tests --color=always
@@ -49,14 +48,14 @@ jobs:
49
48
--tag=posixacl-stable
50
49
- name : Test suite
51
50
run : docker run --rm posixacl-stable cargo test --color=always
52
- - name : cargo check
53
- run : docker run --rm posixacl-stable cargo check --color=always
54
51
- name : Clippy lints
55
- run : docker run --rm posixacl-stable cargo clippy --color=always
52
+ run : docker run --rm posixacl-stable cargo clippy --color=always --all-targets --all-features -- -D warnings
56
53
- name : rustfmt
57
54
run : docker run --rm posixacl-stable cargo fmt -- --color=always --check
58
55
59
56
rust-msrv :
57
+ # FIXME disabled temporarily, needs MSRV bump
58
+ if : false
60
59
runs-on : ubuntu-latest
61
60
steps :
62
61
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ impl PosixACL {
146
146
/// # Errors
147
147
/// * `ACLError::IoError`: Filesystem errors (file not found, permission denied, etc).
148
148
/// * `ACLError::ValidationError`: The ACL failed validation. See [`PosixACL::validate()`] for
149
- /// more information.
149
+ /// more information.
150
150
pub fn write_acl < P : AsRef < Path > > ( & mut self , path : P ) -> Result < ( ) , ACLError > {
151
151
self . write_acl_flags ( path. as_ref ( ) , ACL_TYPE_ACCESS )
152
152
}
@@ -163,7 +163,7 @@ impl PosixACL {
163
163
/// # Errors
164
164
/// * `ACLError::IoError`: Filesystem errors (file not found, permission denied, etc).
165
165
/// * `ACLError::ValidationError`: The ACL failed validation. See [`PosixACL::validate()`] for
166
- /// more information.
166
+ /// more information.
167
167
pub fn write_default_acl < P : AsRef < Path > > ( & mut self , path : P ) -> Result < ( ) , ACLError > {
168
168
self . write_acl_flags ( path. as_ref ( ) , ACL_TYPE_DEFAULT )
169
169
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl<'a> RawACLIterator<'a> {
18
18
}
19
19
}
20
20
21
- impl < ' a > Iterator for RawACLIterator < ' a > {
21
+ impl Iterator for RawACLIterator < ' _ > {
22
22
type Item = acl_entry_t ;
23
23
24
24
fn next ( & mut self ) -> Option < Self :: Item > {
Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ fn read_default_acl() {
262
262
assert_eq ! ( format!( "{:?}" , acl) , "PosixACL(\" \" )" ) ;
263
263
}
264
264
/// Test different types accepted by AsRef<Path>
265
+ #[ allow( clippy:: needless_borrows_for_generic_args) ]
265
266
#[ test]
266
267
fn path_types ( ) {
267
268
PosixACL :: read_acl ( "/tmp" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments