Skip to content

Commit

Permalink
fix: Package::new() features
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Perkowski <[email protected]>
  • Loading branch information
adamperkowski committed Nov 27, 2024
1 parent ca96da8 commit b8fa73d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ impl Package {
let mut package = Package::default();

match source.as_ref() {
#[cfg(feature = "aur")]
"aur" => {
package.aur = target;
Ok(())
}
#[cfg(feature = "github")]
"github" => {
package.github = target;
Ok(())
}
#[cfg(feature = "gitlab")]
"gitlab" => {
package.gitlab = target;
Ok(())
Expand Down

0 comments on commit b8fa73d

Please sign in to comment.