Skip to content

Commit

Permalink
Remove unnecessary into_iter call
Browse files Browse the repository at this point in the history
  • Loading branch information
jlHertel committed Oct 28, 2024
1 parent 737b01d commit 73e2c2a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ pub fn dev_path(dev: dev_t, ty: NodeType) -> io::Result<PathBuf> {
/// Returns an iterator with all DRM Nodes we managed to find. There might be duplicates.
pub fn devices() -> io::Result<impl Iterator<Item = DrmNode>> {
let result = fs::read_dir(DRM_DIR_NAME)?
.into_iter()
.filter_map(|entry| entry.ok())
.filter_map(|entry| DrmNode::from_path(entry.path()).ok());

Expand Down

0 comments on commit 73e2c2a

Please sign in to comment.