about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-31 19:19:47 +0200
committerGitHub <noreply@github.com>2019-03-31 19:19:47 +0200
commitdffdd8f72880cd8119fc1a68028f9c02b115a9d2 (patch)
treeeb55e134558cef80384204715128bd6a7a525a06 /src/liballoc
parenta89c03a30a1e8f1cd190114b765d01752d3ce8d8 (diff)
parentc1d5314bd3b628749491e4fe201b4c6916a53ce6 (diff)
downloadrust-dffdd8f72880cd8119fc1a68028f9c02b115a9d2.tar.gz
rust-dffdd8f72880cd8119fc1a68028f9c02b115a9d2.zip
Rollup merge of #58805 - fabric-and-ink:redundant_import, r=petrochenkov
Lint for redundant imports

Add lint for redundant imports. The changes are suggested by @petrochenkov.

Closes #10178.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/borrow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/borrow.rs b/src/liballoc/borrow.rs
index 74c80a08b12..ee1799fad8e 100644
--- a/src/liballoc/borrow.rs
+++ b/src/liballoc/borrow.rs
@@ -135,7 +135,7 @@ impl<T> ToOwned for T
 /// Another example showing how to keep `Cow` in a struct:
 ///
 /// ```
-/// use std::borrow::{Cow, ToOwned};
+/// use std::borrow::Cow;
 ///
 /// struct Items<'a, X: 'a> where [X]: ToOwned<Owned = Vec<X>> {
 ///     values: Cow<'a, [X]>,