Skip to content

Commit

Permalink
Use fully-qualified syntax in triple! for calling from_str (#92)
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 authored Jul 18, 2023
1 parent 4bdd398 commit 65721ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/triple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl Triple {
#[macro_export]
macro_rules! triple {
($str:tt) => {
target_lexicon::Triple::from_str($str).expect("invalid triple literal")
<$crate::Triple as core::str::FromStr>::from_str($str).expect("invalid triple literal")
};
}

Expand Down

0 comments on commit 65721ed

Please sign in to comment.