mirror of
https://github.com/orhun/systeroid
synced 2024-07-21 18:35:03 +00:00
fix(docs): change the filter for documentation glob pattern
This commit is contained in:
parent
e50ab7a9d7
commit
3fb8a07f84
|
@ -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()
|
||||
}) {
|
||||
|
|
Loading…
Reference in a new issue