From 8ab69e480e063ab27ade627fade4239b26f12044 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 19 Oct 2024 16:38:29 -0400 Subject: [PATCH] Case insensitive match for org file extension. --- src/command/build/runner.rs | 2 +- src/command/build/walk_fs.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/command/build/runner.rs b/src/command/build/runner.rs index 368f57b..f184be9 100644 --- a/src/command/build/runner.rs +++ b/src/command/build/runner.rs @@ -76,7 +76,7 @@ async fn filter_to_highest_folders_containing_org_files( continue; } match entry.path().extension().and_then(OsStr::to_str) { - Some("org") => { + Some(ext) if ext.eq_ignore_ascii_case("org") => { return Ok(WalkAction::HaltAndCapture); } _ => {} diff --git a/src/command/build/walk_fs.rs b/src/command/build/walk_fs.rs index cf20661..287cbf4 100644 --- a/src/command/build/walk_fs.rs +++ b/src/command/build/walk_fs.rs @@ -46,6 +46,7 @@ pub(crate) enum WalkAction { Halt, /// Walk down this path and add it to the return list. + #[allow(dead_code)] RecurseAndCapture, /// Walk down this path but do not add it to the return list.