Skip to content

Commit

Permalink
Remove conversion from Width to usize
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanPlasse committed May 22, 2023
1 parent 84645c7 commit a92d6fb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/ruff/src/settings/line_width.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ impl From<usize> for LineWidth<Length> {
}
}

impl From<LineWidth<Length>> for usize {
fn from(line_width: LineWidth<Length>) -> usize {
line_width.width
}
}

impl<'de> Deserialize<'de> for LineWidth<Length> {
fn deserialize<D>(deserializer: D) -> Result<LineWidth<Length>, D::Error>
where
Expand Down

0 comments on commit a92d6fb

Please sign in to comment.