refactor
This commit is contained in:
parent
d628550abc
commit
924cfcf22c
2 changed files with 4 additions and 4 deletions
|
@ -5,13 +5,13 @@
|
|||
// Optional values are handled in the main Firefish program, and this tool
|
||||
// does not take care of it.
|
||||
|
||||
use super::Revision;
|
||||
use super::{ensure_latest_revision, Revision};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use validator::{Validate, ValidationError};
|
||||
|
||||
#[derive(Deserialize, Serialize, Validate, Debug)]
|
||||
pub struct Config {
|
||||
#[validate(custom(function = "super::ensure_latest_revision"))]
|
||||
#[validate(custom(function = "ensure_latest_revision"))]
|
||||
pub config_revision: Revision,
|
||||
#[validate(nested)]
|
||||
pub theme: Option<Theme>,
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
// Optional values are handled in the main Firefish program, and this tool
|
||||
// does not take care of it.
|
||||
|
||||
use super::Revision;
|
||||
use super::{ensure_latest_revision, Revision};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use validator::Validate;
|
||||
|
||||
#[derive(Deserialize, Serialize, Validate, Debug)]
|
||||
pub struct Config {
|
||||
#[validate(custom(function = "super::ensure_latest_revision"))]
|
||||
#[validate(custom(function = "ensure_latest_revision"))]
|
||||
pub config_revision: Revision,
|
||||
#[validate(nested)]
|
||||
pub info: Option<Info>,
|
||||
|
|
Loading…
Reference in a new issue