This commit is contained in:
Matthew Esposito 2023-06-09 17:32:21 -04:00
parent a39bb9d502
commit 136aa0aa7d
No known key found for this signature in database

View file

@ -70,7 +70,7 @@ pub struct Config {
#[serde(rename = "LIBREDDIT_DISABLE_STATS_COLLECTION")]
pub(crate) disable_stats_collection: Option<String>,
#[serde(rename = "LIBREDDIT_PUSHSHIFT_FRONTEND")]
pub(crate) pushshift: Option<String>,
}
@ -196,4 +196,4 @@ fn test_stats_collection_true() {
let config_to_write = r#"LIBREDDIT_DISABLE_STATS_COLLECTION = "1""#;
write("libreddit.toml", config_to_write).unwrap();
assert!(get_setting("LIBREDDIT_DISABLE_STATS_COLLECTION").is_some());
}
}