diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-03-30 16:48:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-30 16:48:36 +0000 |
commit | cfd025b5289bc305470a96657868c982a2b13bc2 (patch) | |
tree | 093b9105c881e28b909e031c46d2054016b643b3 /src/tty/mod.rs | |
parent | 91aa683bcd060b2ac2f621a388a6448f564d0537 (diff) | |
download | r-alacritty-cfd025b5289bc305470a96657868c982a2b13bc2.tar.gz r-alacritty-cfd025b5289bc305470a96657868c982a2b13bc2.tar.bz2 r-alacritty-cfd025b5289bc305470a96657868c982a2b13bc2.zip |
Add rustfmt style guide
Diffstat (limited to 'src/tty/mod.rs')
-rw-r--r-- | src/tty/mod.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/tty/mod.rs b/src/tty/mod.rs index ea2dd0c4..ec175ee6 100644 --- a/src/tty/mod.rs +++ b/src/tty/mod.rs @@ -57,7 +57,7 @@ pub trait EventedReadWrite { #[derive(PartialEq)] pub enum ChildEvent { /// Indicates the child has exited - Exited + Exited, } /// A pseudoterminal (or PTY) @@ -65,7 +65,7 @@ pub enum ChildEvent { /// This is a refinement of EventedReadWrite that also provides a channel through which we can be /// notified if the PTY child process does something we care about (other than writing to the TTY). /// In particular, this allows for race-free child exit notification on UNIX (cf. `SIGCHLD`). -pub trait EventedPty : EventedReadWrite { +pub trait EventedPty: EventedReadWrite { #[cfg(unix)] fn child_event_token(&self) -> mio::Token; @@ -83,11 +83,7 @@ pub fn setup_env(config: &Config) { // below. env::set_var( "TERM", - if Database::from_name("alacritty").is_ok() { - "alacritty" - } else { - "xterm-256color" - }, + if Database::from_name("alacritty").is_ok() { "alacritty" } else { "xterm-256color" }, ); // Advertise 24-bit color support |