aboutsummaryrefslogtreecommitdiff
path: root/src/tty/windows/winpty.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-01-23 22:04:45 +0000
committerGitHub <noreply@github.com>2019-01-23 22:04:45 +0000
commit430b89c1599abde4fc8520ffcb0e25d9034bea8d (patch)
treeb73a7c637674ae3314a66f69ecb64f21d1624931 /src/tty/windows/winpty.rs
parent3be51e6aeace4ff14fc4fc20993cd80076487324 (diff)
downloadalacritty-430b89c1599abde4fc8520ffcb0e25d9034bea8d.tar.gz
alacritty-430b89c1599abde4fc8520ffcb0e25d9034bea8d.zip
Move clippy tests to stable
The clippy tests had to be run on nightly previously since it wasn't available with the stable compiler yet, however this had the potential to fail a lot since not all nightly builds offer clippy. Since clippy is now available for stable rust, moving clippy to a stable build should make sure that the failure rate of the CI job is cut down to a minimum. This fixes https://github.com/jwilm/alacritty/issues/2007.
Diffstat (limited to 'src/tty/windows/winpty.rs')
-rw-r--r--src/tty/windows/winpty.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tty/windows/winpty.rs b/src/tty/windows/winpty.rs
index 9daa88d1..26536eee 100644
--- a/src/tty/windows/winpty.rs
+++ b/src/tty/windows/winpty.rs
@@ -55,14 +55,14 @@ impl<'a> Agent<'a> {
/// Get immutable access to Winpty.
pub fn winpty(&self) -> &Winpty<'a> {
- unsafe {&*self.winpty}
+ unsafe { &*self.winpty }
}
- /// Get mutable access to Winpty.
- /// Can offer internal mutability like this because Winpty uses
- /// a mutex internally.
- pub fn winpty_mut(&self) -> &mut Winpty<'a> {
- unsafe {&mut *self.winpty}
+ pub fn resize(&self, size: &SizeInfo) {
+ // This is safe since Winpty uses a mutex internally.
+ unsafe {
+ (&mut *self.winpty).on_resize(size);
+ }
}
}