Skip to content

Commit

Permalink
Use From<Op> for String instead of Into<String> for Op
Browse files Browse the repository at this point in the history
  • Loading branch information
TTWNO committed Jun 26, 2024
1 parent e733096 commit f349dba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions atspi-common/src/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ impl TryFrom<&str> for Operation {
}
}

impl Into<String> for Operation {
fn into(self) -> String {
match self {
Self::Insert => "add",
Self::Delete => "delete",
impl From<Operation> for String {
fn from(op: Operation) -> String {
match op {
Operation::Insert => "add",
Operation::Delete => "delete",

Check warning on line 29 in atspi-common/src/operation.rs

View check run for this annotation

Codecov / codecov/patch

atspi-common/src/operation.rs#L29

Added line #L29 was not covered by tests
}
.to_string()
}
Expand Down

0 comments on commit f349dba

Please sign in to comment.