summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastian Wiesner <sebastian@swsnr.de>2018-12-15 16:48:20 +0100
committerSebastian Wiesner <sebastian@swsnr.de>2018-12-15 16:48:20 +0100
commit422347b12ffd07a3657aac157b6bf7f7e56be3e0 (patch)
tree750c769a779e979ad09efee0a4adec19875e5138 /src
parent0a030837f4ab8bd0de7b0bae37386f7b13c6ca90 (diff)
Split another lifetime
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2213922..da5d19b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -59,7 +59,7 @@ where
///
/// `push_tty` tries to limit output to the given number of TTY `columns` but
/// does not guarantee that output stays within the column limit.
-pub fn push_tty<'a, W, I>(
+pub fn push_tty<'a, 'e, W, I>(
writer: &'a mut W,
capabilities: TerminalCapabilities,
size: TerminalSize,
@@ -69,7 +69,7 @@ pub fn push_tty<'a, W, I>(
syntax_set: SyntaxSet,
) -> Result<(), Error>
where
- I: Iterator<Item = Event<'a>>,
+ I: Iterator<Item = Event<'e>>,
W: Write,
{
let theme = &ThemeSet::load_defaults().themes["Solarized (dark)"];