Skip to content

Commit fcde37d

Browse files
committed
Fix compile error on newer rusts
See rust-lang/rust#18937 and related issues for upstream discussion. Compiling the previous code on modern rust results in: error[E0276]: impl has stricter requirements than trait This is the most trivial way to fix this issue. A better fix might be possible. If the event loop were to migrate to tokio and be external to the library (as hyper does these days), that would allow expressing a more stringent lifetime on the handler. For now, getting it back to a compiling state seems like a good step.
1 parent e03d4fe commit fcde37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub trait PtyHandler {
3636

3737
pub trait PtyShell {
3838
fn exec<S: AsRef<str>>(&self, shell: S) -> Result<()>;
39-
fn proxy<H: PtyHandler>(&self, handler: H) -> Result<()>;
39+
fn proxy<H: PtyHandler + 'static>(&self, handler: H) -> Result<()>;
4040
}
4141

4242
impl PtyShell for tty::Fork {

0 commit comments

Comments
 (0)