From 14bbd0a5a3722bdcb4c5f36d81097e1fb992add3 Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 2 May 2017 06:35:36 +0200 Subject: [PATCH] Address review --- src/libcore/convert.rs | 2 +- src/librustdoc/html/highlight.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index f5dc38e8aab6..21c75ad33951 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -276,7 +276,7 @@ pub trait Into: Sized { pub trait From: Sized { /// Performs the conversion. #[stable(feature = "rust1", since = "1.0.0")] - fn from(t: T) -> Self; + fn from(_: T) -> Self; } /// An attempted conversion that consumes `self`, which may or may not be diff --git a/src/librustdoc/html/highlight.rs b/src/librustdoc/html/highlight.rs index c1f1cb43e41d..a40d1e6bdc91 100644 --- a/src/librustdoc/html/highlight.rs +++ b/src/librustdoc/html/highlight.rs @@ -134,7 +134,7 @@ pub trait Writer { fn string(&mut self, text: T, klass: Class, - tas: Option<&TokenAndSpan>) + tok: Option<&TokenAndSpan>) -> io::Result<()>; }