diff options
| author | Corey Farwell <coreyf@rwell.org> | 2016-02-17 20:20:41 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2016-02-18 08:37:10 -0500 |
| commit | 5850d16d52957095c06a78f101c3508f2f4b9d9d (patch) | |
| tree | 261ad88837d0e7cc565b47c3ccf1f652215e27df /src/libterm/lib.rs | |
| parent | 4d3eebff9dc9474f56cdba810edde324130fbc61 (diff) | |
| download | rust-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.rs | 4 |
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; |
