diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 00:54:30 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 00:54:30 +0200 |
| commit | 5c39e7cf284a1f6e9a1657f2deb44e359fc47eb8 (patch) | |
| tree | c64baa8d5866c8e339eaf660dd3f94f30a3f7d8a /crates/atuin-history/src | |
| parent | chore: Somewhat simplify sync code (diff) | |
| download | atuin-5c39e7cf284a1f6e9a1657f2deb44e359fc47eb8.zip | |
chore: Move everything into one big crate
That helps remove duplicated code and rustc/cargo will now also show
dead code correctly.
Diffstat (limited to '')
| -rw-r--r-- | crates/turtle/src/atuin_history/mod.rs (renamed from crates/atuin-history/src/lib.rs) | 0 | ||||
| -rw-r--r-- | crates/turtle/src/atuin_history/sort.rs (renamed from crates/atuin-history/src/sort.rs) | 2 | ||||
| -rw-r--r-- | crates/turtle/src/atuin_history/stats.rs (renamed from crates/atuin-history/src/stats.rs) | 6 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/atuin-history/src/lib.rs b/crates/turtle/src/atuin_history/mod.rs index e7b33916..e7b33916 100644 --- a/crates/atuin-history/src/lib.rs +++ b/crates/turtle/src/atuin_history/mod.rs diff --git a/crates/atuin-history/src/sort.rs b/crates/turtle/src/atuin_history/sort.rs index 022865a2..b162c810 100644 --- a/crates/atuin-history/src/sort.rs +++ b/crates/turtle/src/atuin_history/sort.rs @@ -1,4 +1,4 @@ -use atuin_client::history::History; +use crate::atuin_client::history::History; type ScoredHistory = (f64, History); diff --git a/crates/atuin-history/src/stats.rs b/crates/turtle/src/atuin_history/stats.rs index fedb1487..e47d6c8e 100644 --- a/crates/atuin-history/src/stats.rs +++ b/crates/turtle/src/atuin_history/stats.rs @@ -4,7 +4,7 @@ use crossterm::style::{Color, ResetColor, SetAttribute, SetForegroundColor}; use serde::{Deserialize, Serialize}; use unicode_segmentation::UnicodeSegmentation; -use atuin_client::{history::History, settings::Settings, theme::Meaning, theme::Theme}; +use crate::atuin_client::{history::History, settings::Settings, theme::Meaning, theme::Theme}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Stats { @@ -299,8 +299,8 @@ pub fn compute( #[cfg(test)] mod tests { - use atuin_client::history::History; - use atuin_client::settings::Settings; + use crate::atuin_client::history::History; + use crate::atuin_client::settings::Settings; use time::OffsetDateTime; use super::compute; |
