Skip to content

Commit 8aaf192

Browse files
committed
chore: Avoid Clippy lint warning about module name repetitions in a case like std::error::Error
1 parent d7346f7 commit 8aaf192

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use std::str::Utf8Error;
66
/// Errors that can be detected by the functions of this crate.
77
///
88
/// Of course, invalid address can not be detected, then it's unsafe yet.
9+
#[allow(clippy::module_name_repetitions)] // Like std::error::Error, it is for pointer errors
910
#[derive(Debug)]
1011
pub enum PointerError {
1112
#[allow(missing_docs)] // Obviously, the name is the ref doc.

0 commit comments

Comments
 (0)