File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ impl<'a> SealOptions<'a> {
358
358
///
359
359
/// If the file doesn't support sealing (or `fcntl(2)` otherwise returns an error), this method
360
360
/// returns `false`.
361
+ #[ must_use]
361
362
pub fn is_sealed ( & self , file : & File ) -> bool {
362
363
self . is_sealed_inner ( file) . unwrap_or ( false )
363
364
}
Original file line number Diff line number Diff line change 29
29
missing_copy_implementations,
30
30
missing_debug_implementations,
31
31
missing_docs,
32
- rust_2018_idioms
32
+ rust_2018_idioms,
33
+ unsafe_op_in_unsafe_fn
33
34
) ]
34
35
#![ warn( clippy:: pedantic) ]
35
- #![ allow( clippy:: must_use_candidate , clippy :: needless_doctest_main) ]
36
+ #![ allow( clippy:: needless_doctest_main) ]
36
37
37
38
#[ cfg( not( any( target_os = "linux" , target_os = "android" ) ) ) ]
38
39
compile_error ! ( "pentacle only works on linux or android" ) ;
@@ -86,6 +87,7 @@ pub fn ensure_sealed() -> Result<(), Error> {
86
87
/// Verify whether the currently running program is a sealed anonymous file.
87
88
///
88
89
/// This function returns `false` if opening `/proc/self/exe` fails.
90
+ #[ must_use]
89
91
pub fn is_sealed ( ) -> bool {
90
92
File :: open ( "/proc/self/exe" )
91
93
. map ( |f| OPTIONS . is_sealed ( & f) )
You can’t perform that action at this time.
0 commit comments