diff --git a/CHANGELOG.md b/CHANGELOG.md index d4c4ef5..8beb83e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ * Updated MSRV to `1.63.0` due to multiple dependencies on different platforms: `rustix`, `tempfile`,`linux-raw-sys` * Removed deprecated `Confirm::with_text` +* Removed deprecated `ColorfulTheme::inline_selections` * Prompt builder functions now take `mut self` instead of `&mut self` * Prompt builder functions now return `Self` instead of `&mut Self` * Prompt interaction functions now take `self` instead of `&self` diff --git a/src/theme/colorful.rs b/src/theme/colorful.rs index 1537a22..53de10e 100644 --- a/src/theme/colorful.rs +++ b/src/theme/colorful.rs @@ -50,8 +50,6 @@ pub struct ColorfulTheme { // Formats the highlighting if matched characters #[cfg(feature = "fuzzy-select")] pub fuzzy_match_highlight_style: Style, - /// Show the selections from certain prompts inline - pub inline_selections: bool, } impl Default for ColorfulTheme { @@ -79,7 +77,6 @@ impl Default for ColorfulTheme { fuzzy_cursor_style: Style::new().for_stderr().black().on_white(), #[cfg(feature = "fuzzy-select")] fuzzy_match_highlight_style: Style::new().for_stderr().bold(), - inline_selections: true, } } } @@ -260,15 +257,13 @@ impl Theme for ColorfulTheme { write!(f, "{} ", &self.success_suffix)?; - if self.inline_selections { - for (idx, sel) in selections.iter().enumerate() { - write!( - f, - "{}{}", - if idx == 0 { "" } else { ", " }, - self.values_style.apply_to(sel) - )?; - } + for (idx, sel) in selections.iter().enumerate() { + write!( + f, + "{}{}", + if idx == 0 { "" } else { ", " }, + self.values_style.apply_to(sel) + )?; } Ok(())