fix(docs): change the filter for documentation glob pattern

This commit is contained in:
Orhun Parmaksız 2022-03-19 18:29:42 +03:00
parent e50ab7a9d7
commit 3fb8a07f84
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -87,7 +87,7 @@ impl Sysctl {
for path in KERNEL_DOCS_PATH {
if let Some(mut path) = globwalk::glob(path).ok().and_then(|glob| {
glob.filter_map(StdResult::ok)
.filter(|entry| entry.file_type().is_file())
.filter(|entry| entry.file_type().is_dir())
.map(|entry| entry.into_path())
.next()
}) {