From 248eb2eb4a9fcd28a99a25761542a56901d0d834 Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Sun, 2 Nov 2025 11:40:17 -0800 Subject: [PATCH] Move history.rs into its own module --- src/{ => history}/history.rs | 4 +--- src/history/mod.rs | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) rename src/{ => history}/history.rs (99%) create mode 100644 src/history/mod.rs diff --git a/src/history.rs b/src/history/history.rs similarity index 99% rename from src/history.rs rename to src/history/history.rs index c7bce63a8..45fade8ff 100644 --- a/src/history.rs +++ b/src/history/history.rs @@ -64,8 +64,6 @@ wutil::{FileId, INVALID_FILE_ID, file_id_for_file, wgettext_fmt, wrealpath, wstat, wunlink}, }; -mod file; - #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum SearchType { /// Search for commands exactly matching the given string. @@ -103,7 +101,7 @@ pub enum SearchDirection { Backward, } -use self::file::time_to_seconds; +use super::file::time_to_seconds; // Our history format is intended to be valid YAML. Here it is: // diff --git a/src/history/mod.rs b/src/history/mod.rs new file mode 100644 index 000000000..62693c44b --- /dev/null +++ b/src/history/mod.rs @@ -0,0 +1,3 @@ +mod file; +pub mod history; +pub use history::*;