From doesn’t need to be imported

This commit is contained in:
Benjamin Sago
2020-04-26 18:23:42 +01:00
parent 2d923704c3
commit 7408c8d033
+2 -3
View File
@@ -103,7 +103,6 @@
use std::cmp::max;
use std::convert;
use std::fmt;
use std::iter::repeat;
@@ -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),
@@ -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),