about summary refs log tree commit diff
path: root/src/libterm/lib.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-02-17 20:20:41 -0500
committerCorey Farwell <coreyf@rwell.org>2016-02-18 08:37:10 -0500
commit5850d16d52957095c06a78f101c3508f2f4b9d9d (patch)
tree261ad88837d0e7cc565b47c3ccf1f652215e27df /src/libterm/lib.rs
parent4d3eebff9dc9474f56cdba810edde324130fbc61 (diff)
downloadrust-5850d16d52957095c06a78f101c3508f2f4b9d9d.tar.gz
rust-5850d16d52957095c06a78f101c3508f2f4b9d9d.zip
Remove unnecessary explicit lifetime bounds.
These explicit lifetimes can be ommitted because of lifetime elision
rules. Instances were found using rust-clippy.
Diffstat (limited to 'src/libterm/lib.rs')
-rw-r--r--src/libterm/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs
index 771e2470455..01daa938142 100644
--- a/src/libterm/lib.rs
+++ b/src/libterm/lib.rs
@@ -211,10 +211,10 @@ pub trait Terminal: Write {
     fn reset(&mut self) -> io::Result<bool>;
 
     /// Gets an immutable reference to the stream inside
-    fn get_ref<'a>(&'a self) -> &'a Self::Output;
+    fn get_ref(&self) -> &Self::Output;
 
     /// Gets a mutable reference to the stream inside
-    fn get_mut<'a>(&'a mut self) -> &'a mut Self::Output;
+    fn get_mut(&mut self) -> &mut Self::Output;
 
     /// Returns the contained stream, destroying the `Terminal`
     fn into_inner(self) -> Self::Output where Self: Sized;