diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-10-08 05:29:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 07:29:57 +0400 |
commit | 59c63d373804fe9d00d92d2dd47174d4e1637333 (patch) | |
tree | 4e80165d62fd632f0a5b5c285845fc9f97ee1e0b /alacritty_terminal/src/term/mod.rs | |
parent | c2f8abecfbaf6b6388e7746b733b7f22cbb7a750 (diff) | |
download | alacritty-59c63d373804fe9d00d92d2dd47174d4e1637333.tar.gz alacritty-59c63d373804fe9d00d92d2dd47174d4e1637333.zip |
Update dependencies
This patch applies all breaking and non-breaking dependency updates
and bumps MSRV to 1.70.0.
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 2e66b402..fd537122 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -4,6 +4,8 @@ use std::ops::{Index, IndexMut, Range}; use std::sync::Arc; use std::{cmp, mem, ptr, slice, str}; +use base64::engine::general_purpose::STANDARD as Base64; +use base64::Engine; use bitflags::bitflags; use log::{debug, trace}; use unicode_width::UnicodeWidthChar; @@ -1556,7 +1558,7 @@ impl<T: EventListener> Handler for Term<T> { _ => return, }; - if let Ok(bytes) = base64::decode(base64) { + if let Ok(bytes) = Base64.decode(base64) { if let Ok(text) = String::from_utf8(bytes) { self.event_proxy.send_event(Event::ClipboardStore(clipboard_type, text)); } @@ -1582,7 +1584,7 @@ impl<T: EventListener> Handler for Term<T> { self.event_proxy.send_event(Event::ClipboardLoad( clipboard_type, Arc::new(move |text| { - let base64 = base64::encode(text); + let base64 = Base64.encode(text); format!("\x1b]52;{};{}{}", clipboard as char, base64, terminator) }), )); |