diff options
author | sterlingjensen <5555776+sterlingjensen@users.noreply.github.com> | 2020-01-02 18:17:22 -0600 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2020-01-03 00:17:22 +0000 |
commit | 05df4f4dbabd82bc71cea6b81ee9383a55b32088 (patch) | |
tree | 839acbe3cde075efbd06449e65521b58b093a18d /winpty | |
parent | d774c7f3a3466b6d7dbcce4c149d74c041036c9f (diff) | |
download | alacritty-05df4f4dbabd82bc71cea6b81ee9383a55b32088.tar.gz alacritty-05df4f4dbabd82bc71cea6b81ee9383a55b32088.zip |
Replace deprecated Error methods
Diffstat (limited to 'winpty')
-rw-r--r-- | winpty/src/windows.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 } } |