Commit 2dbea3b6 authored by Sag0Sag0's avatar Sag0Sag0

Removed unnecessary lifetime parameters

parent ec9acced
......@@ -68,7 +68,7 @@ impl Context {
/// The output is stdout.
/// The returned line has the newline removed.
/// Before returning, will revert all changes to the history buffers.
pub fn read_line<'a, P: Into<String>>(
pub fn read_line<P: Into<String>>(
&mut self,
prompt: P,
f: Box<for<'r> Fn(&'r str) -> Cow<'_, str>>,
......@@ -88,7 +88,7 @@ impl Context {
/// Box::new(|s| s.into()),
/// "some initial buffer");
/// ```
pub fn read_line_with_init_buffer<'a, P: Into<String>, B: Into<Buffer>>(
pub fn read_line_with_init_buffer<P: Into<String>, B: Into<Buffer>>(
&mut self,
prompt: P,
mut handler: &mut EventHandler<RawTerminal<Stdout>>,
......
......@@ -110,7 +110,7 @@ macro_rules! cur_buf {
}
}
impl<'a, 'b, W: Write> Editor<'a, W> {
impl<'a, W: Write> Editor<'a, W> {
pub fn new<P: Into<String>>(
out: W,
prompt: P,
......
......@@ -30,7 +30,7 @@ fn main() {
if con.history.file_name().is_some() {
con.history.load_history().unwrap();
}
loop {
let res = con.read_line("[prompt]$ ",
Box::new(highlight_dodo),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment