Format
This commit is contained in:
parent
a39bb9d502
commit
136aa0aa7d
@ -70,7 +70,7 @@ pub struct Config {
|
|||||||
|
|
||||||
#[serde(rename = "LIBREDDIT_DISABLE_STATS_COLLECTION")]
|
#[serde(rename = "LIBREDDIT_DISABLE_STATS_COLLECTION")]
|
||||||
pub(crate) disable_stats_collection: Option<String>,
|
pub(crate) disable_stats_collection: Option<String>,
|
||||||
|
|
||||||
#[serde(rename = "LIBREDDIT_PUSHSHIFT_FRONTEND")]
|
#[serde(rename = "LIBREDDIT_PUSHSHIFT_FRONTEND")]
|
||||||
pub(crate) pushshift: Option<String>,
|
pub(crate) pushshift: Option<String>,
|
||||||
}
|
}
|
||||||
@ -196,4 +196,4 @@ fn test_stats_collection_true() {
|
|||||||
let config_to_write = r#"LIBREDDIT_DISABLE_STATS_COLLECTION = "1""#;
|
let config_to_write = r#"LIBREDDIT_DISABLE_STATS_COLLECTION = "1""#;
|
||||||
write("libreddit.toml", config_to_write).unwrap();
|
write("libreddit.toml", config_to_write).unwrap();
|
||||||
assert!(get_setting("LIBREDDIT_DISABLE_STATS_COLLECTION").is_some());
|
assert!(get_setting("LIBREDDIT_DISABLE_STATS_COLLECTION").is_some());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user