From 05df4f4dbabd82bc71cea6b81ee9383a55b32088 Mon Sep 17 00:00:00 2001 From: sterlingjensen <5555776+sterlingjensen@users.noreply.github.com> Date: Thu, 2 Jan 2020 18:17:22 -0600 Subject: Replace deprecated Error methods --- winpty/src/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winpty/src') diff --git a/winpty/src/windows.rs b/winpty/src/windows.rs index 25bf9d3e..fb2b1e80 100644 --- a/winpty/src/windows.rs +++ b/winpty/src/windows.rs @@ -83,8 +83,8 @@ impl Display for Error { } impl std::error::Error for Error { - fn description(&self) -> &str { - &self.message + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + None } } -- cgit