summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-02-13 18:15:57 +0000
committerGitHub <noreply@github.com>2021-02-13 18:15:57 +0000
commitd872b9f3aed225bcae74ee3707a690c1a096608e (patch)
treef0686a59463c65e218b4b3945b6249ecc1dfc0f3 /alacritty_terminal/src/term
parenta5e2ccd5aba720cc63af4079e7f5e5afb6d9b893 (diff)
downloadalacritty-d872b9f3aed225bcae74ee3707a690c1a096608e.tar.gz
alacritty-d872b9f3aed225bcae74ee3707a690c1a096608e.zip
Update dependencies
This introduces some duplicate dependencies, though they are necessary to build properly without any warnings. Fixes #4735.
Diffstat (limited to 'alacritty_terminal/src/term')
-rw-r--r--alacritty_terminal/src/term/color.rs4
-rw-r--r--alacritty_terminal/src/term/mod.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/color.rs b/alacritty_terminal/src/term/color.rs
index a67e2c6e..32c6af2b 100644
--- a/alacritty_terminal/src/term/color.rs
+++ b/alacritty_terminal/src/term/color.rs
@@ -115,7 +115,7 @@ impl<'de> Deserialize<'de> for Rgb {
where
E: serde::de::Error,
{
- Rgb::from_str(&value[..]).map_err(|_| {
+ Rgb::from_str(value).map_err(|_| {
E::custom(format!(
"failed to parse rgb color {}; expected hex color like #ff00ff",
value
@@ -219,7 +219,7 @@ impl<'de> Deserialize<'de> for CellRgb {
_ => (),
}
- Rgb::from_str(&value[..]).map(CellRgb::Rgb).map_err(|_| {
+ Rgb::from_str(value).map(CellRgb::Rgb).map_err(|_| {
E::custom(format!("failed to parse color {}; expected {}", value, EXPECTING))
})
}
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index 4ece1b52..a898ecc4 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -1573,7 +1573,7 @@ impl<T: EventListener> Handler for Term<T> {
ansi::Mode::LineWrap => self.mode.insert(TermMode::LINE_WRAP),
ansi::Mode::LineFeedNewLine => self.mode.insert(TermMode::LINE_FEED_NEW_LINE),
ansi::Mode::Origin => self.mode.insert(TermMode::ORIGIN),
- ansi::Mode::DECCOLM => self.deccolm(),
+ ansi::Mode::ColumnMode => self.deccolm(),
ansi::Mode::Insert => self.mode.insert(TermMode::INSERT),
ansi::Mode::BlinkingCursor => {
let style = self.cursor_style.get_or_insert(self.default_cursor_style);
@@ -1615,7 +1615,7 @@ impl<T: EventListener> Handler for Term<T> {
ansi::Mode::LineWrap => self.mode.remove(TermMode::LINE_WRAP),
ansi::Mode::LineFeedNewLine => self.mode.remove(TermMode::LINE_FEED_NEW_LINE),
ansi::Mode::Origin => self.mode.remove(TermMode::ORIGIN),
- ansi::Mode::DECCOLM => self.deccolm(),
+ ansi::Mode::ColumnMode => self.deccolm(),
ansi::Mode::Insert => self.mode.remove(TermMode::INSERT),
ansi::Mode::BlinkingCursor => {
let style = self.cursor_style.get_or_insert(self.default_cursor_style);