Skip to content

Commit

Permalink
Update umbra
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Dec 2, 2024
1 parent 7dacd5b commit e575bab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tracing = "0.1.41"
tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.19", features = ["chrono"] }
tui-input = "0.11.1"
umbra = "0.2.0"
umbra = "0.3.0"

[dev-dependencies]
rstest = "0.23.0"
Expand Down
10 changes: 5 additions & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PREVIEW_THEME_DIR: &str = "preview_theme";
const PREVIEW_SYNTAX_DIR: &str = "preview_syntax";
const CACHE_FILE_NAME: &str = "cache.txt";

#[optional(derives = ["Deserialize"])]
#[optional(derives = [Deserialize])]
#[derive(Debug, Clone, SmartDefault)]
pub struct Config {
#[default(_code = "default_download_dir()")]
Expand All @@ -29,7 +29,7 @@ pub struct Config {
pub preview: PreviewConfig,
}

#[optional(derives = ["Deserialize"])]
#[optional(derives = [Deserialize])]
#[derive(Debug, Clone, SmartDefault)]
pub struct UiConfig {
#[nested]
Expand All @@ -38,7 +38,7 @@ pub struct UiConfig {
pub object_detail: UiObjectDetailConfig,
}

#[optional(derives = ["Deserialize"])]
#[optional(derives = [Deserialize])]
#[derive(Debug, Clone, SmartDefault)]
pub struct UiObjectListConfig {
#[default = "%Y-%m-%d %H:%M:%S"]
Expand All @@ -47,14 +47,14 @@ pub struct UiObjectListConfig {
pub date_width: usize,
}

#[optional(derives = ["Deserialize"])]
#[optional(derives = [Deserialize])]
#[derive(Debug, Clone, SmartDefault)]
pub struct UiObjectDetailConfig {
#[default = "%Y-%m-%d %H:%M:%S"]
pub date_format: String,
}

#[optional(derives = ["Deserialize"])]
#[optional(derives = [Deserialize])]
#[derive(Debug, Clone, SmartDefault)]
pub struct PreviewConfig {
pub highlight: bool,
Expand Down

0 comments on commit e575bab

Please sign in to comment.