Skip to content

Commit

Permalink
From doesn’t need to be imported
Browse files Browse the repository at this point in the history
  • Loading branch information
ogham committed Apr 26, 2020
1 parent 2d92370 commit 7408c8d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@

use std::cmp::max;
use std::convert;
use std::fmt;
use std::iter::repeat;

Expand Down Expand Up @@ -142,7 +141,7 @@ pub struct Cell {
pub alignment: Alignment,
}

impl convert::From<String> for Cell {
impl From<String> for Cell {
fn from(string: String) -> Self {
Self {
width: UnicodeWidthStr::width(&*string),
Expand All @@ -152,7 +151,7 @@ impl convert::From<String> for Cell {
}
}

impl<'a> convert::From<&'a str> for Cell {
impl<'a> From<&'a str> for Cell {
fn from(string: &'a str) -> Self {
Self {
width: UnicodeWidthStr::width(&*string),
Expand Down

0 comments on commit 7408c8d

Please sign in to comment.