Browse Source

conf/pager: remove unused max_width option

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
8090d614e2
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 6
      src/conf/overrides.rs
  2. 7
      src/conf/pager.rs

6
src/conf/overrides.rs

@ -70,11 +70,6 @@ pub struct PagerSettingsOverride {
#[serde(alias = "minimum-width")]
#[serde(default)]
pub minimum_width: Option<usize>,
#[doc = " Maximum text width in columns."]
#[doc = " Default: None"]
#[serde(alias = "minimum-width")]
#[serde(default)]
pub max_width: Option<Option<usize>>,
#[doc = " Choose `text/html` alternative if `text/plain` is empty in `multipart/alternative`"]
#[doc = " attachments."]
#[doc = " Default: true"]
@ -94,7 +89,6 @@ impl Default for PagerSettingsOverride {
format_flowed: None,
split_long_lines: None,
minimum_width: None,
max_width: None,
auto_choose_multipart_alternative: None,
}
}

7
src/conf/pager.rs

@ -79,11 +79,6 @@ pub struct PagerSettings {
#[serde(default = "eighty_val", alias = "minimum-width")]
pub minimum_width: usize,
/// Maximum text width in columns.
/// Default: None
#[serde(default = "none", alias = "minimum-width")]
pub max_width: Option<usize>,
/// Choose `text/html` alternative if `text/plain` is empty in `multipart/alternative`
/// attachments.
/// Default: true
@ -106,7 +101,6 @@ impl Default for PagerSettings {
format_flowed: true,
split_long_lines: true,
minimum_width: 80,
max_width: None,
auto_choose_multipart_alternative: ToggleFlag::InternalVal(true),
}
}
@ -127,7 +121,6 @@ impl DotAddressable for PagerSettings {
"format_flowed" => self.format_flowed.lookup(field, tail),
"split_long_lines" => self.split_long_lines.lookup(field, tail),
"minimum_width" => self.minimum_width.lookup(field, tail),
"max_width" => self.max_width.lookup(field, tail),
"auto_choose_multipart_alternative" => {
self.auto_choose_multipart_alternative.lookup(field, tail)
}

Loading…
Cancel
Save