Skip to content

Commit

Permalink
Use fully-qualified syntax in triple! for calling from_str
Browse files Browse the repository at this point in the history
This way the caller doesn't need to import `FromStr`.
  • Loading branch information
ids1024 committed Jul 18, 2023
1 parent 4bdd398 commit c7c30bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/triple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ impl Triple {
#[macro_export]
macro_rules! triple {
($str:tt) => {
target_lexicon::Triple::from_str($str).expect("invalid triple literal")
<target_lexicon::Triple as core::str::FromStr>::from_str($str)
.expect("invalid triple literal")
};
}

Expand Down

0 comments on commit c7c30bc

Please sign in to comment.