Skip to content

Commit 61b955d

Browse files
committed
ref(project): make config optional
1 parent d5226d0 commit 61b955d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/daemon/state/project.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct Target {
1515
sources: Vec<PathBuf>,
1616
}
1717

18-
#[derive(Debug)]
18+
#[derive(Debug, Default)]
1919
#[cfg_attr(feature = "serial", derive(serde::Deserialize))]
2020
pub struct LocalConfig {
2121
pub ignore: Vec<String>,
@@ -32,7 +32,7 @@ pub struct Project {
3232
/// The list of targets in the project mapped by name
3333
targets: TargetMap,
3434
/// XcodeBase local configuration
35-
#[cfg_attr(feature = "serial", serde(rename(deserialize = "XcodeBase")))]
35+
#[cfg_attr(feature = "serial", serde(rename(deserialize = "XcodeBase"), default))]
3636
xcode_base: LocalConfig,
3737
/// Root directory
3838
#[cfg_attr(feature = "serial", serde(skip))]

0 commit comments

Comments
 (0)