Skip to content

Commit

Permalink
Chore: Update Sablier submodule (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy authored Feb 20, 2025
1 parent 9f3ae69 commit 7e185e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions aderyn_driver/src/config_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde::Deserialize;
#[derive(Deserialize, Clone)]
pub struct AderynConfig {
/// By default we'll assume it's version 1
pub version: Option<usize>,
pub version: usize,
pub root: Option<String>,
pub src: Option<String>,
pub exclude: Option<Vec<String>>,
Expand All @@ -29,7 +29,7 @@ fn load_aderyn_config(root: &Path) -> Result<AderynConfig, String> {
let mut config: AderynConfig =
toml::from_str(&content).map_err(|err| format!("Error parsing config file: {}", err))?;

if config.version.is_some_and(|v| v != 1) {
if config.version != 1 {
return Err("aderyn.toml version not supported".to_owned());
}

Expand Down Expand Up @@ -223,7 +223,7 @@ mod tests {
#[test]
fn test_interpret_aderyn_config_correctly_appends_and_replaces() {
let config = super::AderynConfig {
version: Some(1),
version: 1,
root: Some("CONFIG_ROOT".to_string()),
src: Some("CONFIG_SRC".to_string()),
exclude: Some(vec!["CONFIG_EXCLUDE".to_string()]),
Expand Down
2 changes: 1 addition & 1 deletion tests/2024-05-Sablier
Submodule 2024-05-Sablier updated 1 files
+2 −1 aderyn.toml

0 comments on commit 7e185e5

Please sign in to comment.