Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Aug 6, 2021
1 parent 447f416 commit 26ca7c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gtmpl"
version = "0.7.0"
version = "0.7.1"
authors = ["Florian Dieminger <me@fiji-flo.de>"]
description = "The Golang Templating Language for Rust"
license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ lazy_static! {
};
}

#[allow(clippy::enum_variant_names)]
#[derive(Debug, Clone, PartialEq)]
pub enum ItemType {
ItemError, // error occurred; value is text of error
Expand Down Expand Up @@ -604,7 +605,7 @@ impl LexerStateMachine {

fn lex_raw_quote(&mut self) -> State {
let start_line = self.line;
if self.find(|c| *c == '`').is_none() {
if !self.any(|c| c == '`') {
self.line = start_line;
return self.errorf("unterminated raw quoted string");
}
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//! ```
pub mod error;
mod exec;
#[doc(inline)]
pub mod funcs;
mod lexer;
mod node;
Expand Down
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ mod tests {
#[test]
fn test_is_true() {
let t = Value::from(1i8);
assert_eq!(is_true(&t), true);
assert!(is_true(&t));
let t = Value::from(0u32);
assert_eq!(is_true(&t), false);
assert!(is_true(&t));
}
}

0 comments on commit 26ca7c2

Please sign in to comment.