From 7408c8d033a77920c92fdbd3c1dd54a3a2bd0051 Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Sun, 26 Apr 2020 18:23:42 +0100 Subject: [PATCH] =?UTF-8?q?From=20doesn=E2=80=99t=20need=20to=20be=20impor?= =?UTF-8?q?ted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d15ca6f..fceddd7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 for Cell { +impl From for Cell { fn from(string: String) -> Self { Self { width: UnicodeWidthStr::width(&*string), @@ -152,7 +151,7 @@ impl convert::From 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),