Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix cargo clippy -Dwarnings unused import warning issue
  • Loading branch information
xiangzhai committed Apr 23, 2023
commit f7bb7d7c9e4b929c7bbd4f85202f8fd441c1b0df
1 change: 1 addition & 0 deletions stdlib/src/mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ mod mmap {
MADV_MERGEABLE, MADV_NOHUGEPAGE, MADV_REMOVE, MADV_UNMERGEABLE,
};

#[allow(unused_imports)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is supposed to be used by #[pyattr]

Suggested change
#[allow(unused_imports)]
#[pyattr]

Because we usually use cfg - pyattr order, placing it under cfg will be better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

#[cfg(any(
target_os = "android",
all(
Expand Down