Skip to content

Commit

Permalink
fix: error when compiling without keyring feature
Browse files Browse the repository at this point in the history
Fix an issue that prevents building the crate without the `keyring`
feature.
The `Secrets::SecretsFile` enum is now a struct, not a tuple,
so instead of calling `Secrets::SecretsFile("path")`, change the call to
`Secrets::SecretsFile { file: "path" }`. The behavior stays the same.
  • Loading branch information
benpueschel committed Aug 6, 2024
1 parent f62ac53 commit 2f1420d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl Default for Config {
#[cfg(feature = "keyring")]
secrets: Secrets::Keyring,
#[cfg(not(feature = "keyring"))]
secrets: Secrets::SecretsFile(format!("{xdg_config}/gritty/secrets.toml")),
secrets: Secrets::SecretsFile { file: format!("{xdg_config}/gritty/secrets.toml") },
}
}
}
Expand Down

0 comments on commit 2f1420d

Please sign in to comment.