Skip to content

Commit

Permalink
Use From not Into
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 9, 2024
1 parent c587677 commit 27389ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/test-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,9 @@ enum QuoteContextArg {
ChangeThresholdAccounts,
}

impl Into<QuoteContext> for QuoteContextArg {
fn into(self) -> QuoteContext {
match self {
impl From<QuoteContextArg> for QuoteContext {
fn from(quote_context: QuoteContextArg) -> Self {
match quote_context {
QuoteContextArg::Validate => QuoteContext::Validate,
QuoteContextArg::ChangeEndpoint => QuoteContext::ChangeEndpoint,
QuoteContextArg::ChangeThresholdAccounts => QuoteContext::ChangeThresholdAccounts,
Expand Down

0 comments on commit 27389ed

Please sign in to comment.