summaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/clipboard.rs4
-rw-r--r--alacritty_terminal/src/tty/unix.rs2
-rw-r--r--alacritty_terminal/src/url.rs2
-rw-r--r--alacritty_terminal/src/util.rs2
4 files changed, 7 insertions, 3 deletions
diff --git a/alacritty_terminal/src/clipboard.rs b/alacritty_terminal/src/clipboard.rs
index 827559bb..0e40cd47 100644
--- a/alacritty_terminal/src/clipboard.rs
+++ b/alacritty_terminal/src/clipboard.rs
@@ -26,8 +26,8 @@ use copypasta::x11_clipboard::{Primary as X11SelectionClipboard, X11ClipboardCon
use copypasta::{ClipboardContext, ClipboardProvider};
pub struct Clipboard {
- clipboard: Box<ClipboardProvider>,
- selection: Option<Box<ClipboardProvider>>,
+ clipboard: Box<dyn ClipboardProvider>,
+ selection: Option<Box<dyn ClipboardProvider>>,
}
impl Clipboard {
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs
index 0cf1a821..cafa7027 100644
--- a/alacritty_terminal/src/tty/unix.rs
+++ b/alacritty_terminal/src/tty/unix.rs
@@ -194,6 +194,8 @@ pub fn new<T: ToWinsize>(config: &Config, size: &T, window_id: Option<usize>) ->
builder.env("WINDOWID", format!("{}", window_id));
}
+ // TODO: Rust 1.34.0
+ #[allow(deprecated)]
builder.before_exec(move || {
// Create a new process group
unsafe {
diff --git a/alacritty_terminal/src/url.rs b/alacritty_terminal/src/url.rs
index b10f2421..c3c70267 100644
--- a/alacritty_terminal/src/url.rs
+++ b/alacritty_terminal/src/url.rs
@@ -73,7 +73,7 @@ impl UrlParser {
self.state.char_indices().rev().skip_while(|(byte_index, _)| *byte_index >= index);
for (byte_index, c) in iter {
match c {
- 'a'...'z' | 'A'...'Z' => (),
+ 'a'..='z' | 'A'..='Z' => (),
_ => {
self.origin =
self.origin.saturating_sub(byte_index + c.width().unwrap_or(1));
diff --git a/alacritty_terminal/src/util.rs b/alacritty_terminal/src/util.rs
index b8703012..45b17353 100644
--- a/alacritty_terminal/src/util.rs
+++ b/alacritty_terminal/src/util.rs
@@ -87,6 +87,8 @@ where
I: IntoIterator<Item = S>,
S: AsRef<OsStr>,
{
+ // TODO: Rust 1.34.0
+ #[allow(deprecated)]
Command::new(program)
.args(args)
.stdin(Stdio::null())