Skip to content

Commit

Permalink
ref(project): make config optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kkharji committed May 6, 2022
1 parent d5226d0 commit 61b955d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon/state/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct Target {
sources: Vec<PathBuf>,
}

#[derive(Debug)]
#[derive(Debug, Default)]
#[cfg_attr(feature = "serial", derive(serde::Deserialize))]
pub struct LocalConfig {
pub ignore: Vec<String>,
Expand All @@ -32,7 +32,7 @@ pub struct Project {
/// The list of targets in the project mapped by name
targets: TargetMap,
/// XcodeBase local configuration
#[cfg_attr(feature = "serial", serde(rename(deserialize = "XcodeBase")))]
#[cfg_attr(feature = "serial", serde(rename(deserialize = "XcodeBase"), default))]
xcode_base: LocalConfig,
/// Root directory
#[cfg_attr(feature = "serial", serde(skip))]
Expand Down

0 comments on commit 61b955d

Please sign in to comment.