Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 746ad51

Browse files
committed
feat: implement default for save analysis config
1 parent 7a62f4f commit 746ad51

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

rls-data/src/config.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use serde::{Deserialize, Serialize};
33

44
/// Used to configure save-analysis.
5-
#[derive(Debug, Clone, Default)]
5+
#[derive(Debug, Clone)]
66
#[cfg_attr(feature = "derive", derive(Serialize, Deserialize))]
77
pub struct Config {
88
/// File to output save-analysis data to.
@@ -22,3 +22,17 @@ pub struct Config {
2222
/// Include experimental borrow data.
2323
pub borrow_data: bool,
2424
}
25+
26+
impl Default for Config {
27+
fn default() -> Self {
28+
Self {
29+
output_file: None,
30+
full_docs: true,
31+
pub_only: false,
32+
reachable_only: false,
33+
distro_crate: false,
34+
signatures: true,
35+
borrow_data: true,
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)