Skip to content

Commit 8e0fd4a

Browse files
committed
adjust lints
1 parent 2d10a54 commit 8e0fd4a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/file.rs

+1
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ impl<'a> SealOptions<'a> {
358358
///
359359
/// If the file doesn't support sealing (or `fcntl(2)` otherwise returns an error), this method
360360
/// returns `false`.
361+
#[must_use]
361362
pub fn is_sealed(&self, file: &File) -> bool {
362363
self.is_sealed_inner(file).unwrap_or(false)
363364
}

src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929
missing_copy_implementations,
3030
missing_debug_implementations,
3131
missing_docs,
32-
rust_2018_idioms
32+
rust_2018_idioms,
33+
unsafe_op_in_unsafe_fn
3334
)]
3435
#![warn(clippy::pedantic)]
35-
#![allow(clippy::must_use_candidate, clippy::needless_doctest_main)]
36+
#![allow(clippy::needless_doctest_main)]
3637

3738
#[cfg(not(any(target_os = "linux", target_os = "android")))]
3839
compile_error!("pentacle only works on linux or android");
@@ -86,6 +87,7 @@ pub fn ensure_sealed() -> Result<(), Error> {
8687
/// Verify whether the currently running program is a sealed anonymous file.
8788
///
8889
/// This function returns `false` if opening `/proc/self/exe` fails.
90+
#[must_use]
8991
pub fn is_sealed() -> bool {
9092
File::open("/proc/self/exe")
9193
.map(|f| OPTIONS.is_sealed(&f))

0 commit comments

Comments
 (0)