Skip to content

Commit

Permalink
Fix targ constructor
Browse files Browse the repository at this point in the history
Technically a breaking change but it was broken previously so there
should be no users to break.
  • Loading branch information
Morganamilo committed Oct 17, 2023
1 parent c75bf4c commit 3782b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alpm-utils/src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct Targ<'a> {

impl<'a> Targ<'a> {
/// Create a new Targ.
pub fn new<S: AsRef<str>>(repo: Option<&'a S>, pkg: &'a S) -> Targ<'a> {
pub fn new<S: AsRef<str>>(repo: Option<S>, pkg: S) -> Targ<'a> {
Targ {
repo: repo.map(AsRef::as_ref),
pkg: pkg.as_ref(),
Expand Down

0 comments on commit 3782b8b

Please sign in to comment.