diff --git a/pty/src/win/winpty/safe.rs b/pty/src/win/winpty/safe.rs index 2b885d9a4..d620738b9 100644 --- a/pty/src/win/winpty/safe.rs +++ b/pty/src/win/winpty/safe.rs @@ -3,7 +3,7 @@ //! https://github.com/rprichard/winpty/blob/master/src/include/winpty.h #![allow(dead_code)] use super::sys::*; -use anyhow::{bail, ensure, Error}; +use anyhow::{anyhow, bail, ensure, Error}; use bitflags::bitflags; use filedescriptor::{FileDescriptor, OwnedHandle}; use std::ffi::{OsStr, OsString}; diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rs index 82bf51c84..343216860 100644 --- a/window/src/os/macos/window.rs +++ b/window/src/os/macos/window.rs @@ -10,7 +10,7 @@ use crate::{ MouseCursor, MouseEvent, MouseEventKind, MousePress, Operator, PaintContext, Point, Rect, ScreenPoint, Size, WindowCallbacks, WindowOps, WindowOpsMut, }; -use anyhow::{bail, ensure, Context}; +use anyhow::{anyhow, bail, ensure}; use cocoa::appkit::{ NSApplicationActivateIgnoringOtherApps, NSBackingStoreBuffered, NSEvent, NSEventModifierFlags, NSRunningApplication, NSScreen, NSView, NSViewHeightSizable, NSViewWidthSizable, NSWindow,