aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-13 09:09:33 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-13 09:09:33 -0700
commit18ced2005087045bf5f83aa070f654eeb2ad955f (patch)
treeff10ca8abe17699b5c616c8af582833bafe28610 /src/lib.rs
parentfd3e43699f48c2c6a4912714e88372a19cc1f928 (diff)
downloadr-alacritty-vte-18ced2005087045bf5f83aa070f654eeb2ad955f.tar.gz
r-alacritty-vte-18ced2005087045bf5f83aa070f654eeb2ad955f.tar.bz2
r-alacritty-vte-18ced2005087045bf5f83aa070f654eeb2ad955f.zip
Finish implementing codegen for state table
When modifying table.rs.in, `cargo run` must be run in the `codegen` crate. The result of expansion is included in the source tree so that consumers don't need to pull in syntex just to compile.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d7dadad..95ac4c8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -10,7 +10,7 @@ impl State {
#[inline(always)]
pub fn exit_action(&self) -> Action {
unsafe {
- ::table::EXIT_ACTIONS.get_unchecked(*self as usize)
+ *::table::EXIT_ACTIONS.get_unchecked(*self as usize)
}
}
@@ -18,7 +18,7 @@ impl State {
#[inline(always)]
pub fn entry_action(&self) -> Action {
unsafe {
- ::table::ENTRY_ACTIONS.get_unchecked(*self as usize)
+ *::table::ENTRY_ACTIONS.get_unchecked(*self as usize)
}
}
}