aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-01-12 16:47:26 +0100
committerGitHub <noreply@github.com>2020-01-12 16:47:26 +0100
commita0b8c325e1bbfa9d403fa279a4914348282d366c (patch)
treeeaee2135fc2cbde72a9e68e969c93a71612d488a
parent59e13856269f5da22b3b0714545851247126d6ba (diff)
downloadr-alacritty-vte-a0b8c325e1bbfa9d403fa279a4914348282d366c.tar.gz
r-alacritty-vte-a0b8c325e1bbfa9d403fa279a4914348282d366c.tar.bz2
r-alacritty-vte-a0b8c325e1bbfa9d403fa279a4914348282d366c.zip
Fix 1.36.0 build failure
-rw-r--r--:wq29
-rw-r--r--CHANGELOG.md4
-rw-r--r--vte_generate_state_changes/src/lib.rs2
3 files changed, 34 insertions, 1 deletions
diff --git a/:wq b/:wq
new file mode 100644
index 0000000..f076554
--- /dev/null
+++ b/:wq
@@ -0,0 +1,29 @@
+CHANGELOG
+=========
+
+## Unreleased
+
+- Fix build failure on Rust 1.36.0
+
+## 0.5.0
+
+- Support for dynamically sized escape buffers without feature `no_std`
+- Improved UTF8 parser performance
+- Migrate to Rust 2018
+
+## 0.4.0
+
+- Fix handling of DCS escapes
+
+## 0.3.3
+
+- Fix off-by-one error in CSI parsing when params list was at max length
+ (previously caused a panic).
+- Support no_std
+
+## 0.2.0
+
+- Removes `osc_start`, `osc_put`, and `osc_end`
+- Adds `osc_dispatch` which simply receives a list of parameters
+- Removes `byte: u8` parameter from `hook` and `unhook` because it's always
+ zero.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c96d04f..f076554 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
CHANGELOG
=========
+## Unreleased
+
+- Fix build failure on Rust 1.36.0
+
## 0.5.0
- Support for dynamically sized escape buffers without feature `no_std`
diff --git a/vte_generate_state_changes/src/lib.rs b/vte_generate_state_changes/src/lib.rs
index 485a33e..5cfb3ac 100644
--- a/vte_generate_state_changes/src/lib.rs
+++ b/vte_generate_state_changes/src/lib.rs
@@ -137,7 +137,7 @@ fn optional_punct(iter: &mut Peekable<token_stream::IntoIter>, c: char) -> bool
/// Panics if the punctuation does not match.
fn expect_punct(iter: &mut impl Iterator<Item = TokenTree>, c: char) {
match iter.next() {
- Some(Punct(punct)) if punct.as_char() == c => (),
+ Some(Punct(ref punct)) if punct.as_char() == c => (),
token => panic!("Expected punctuation '{}', but got {:?}", c, token),
}
}