Skip to content

Commit ea8312f

Browse files
committed
Fix clippy warnings for modern Rust
1 parent dac1a19 commit ea8312f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
//! let output = gtmpl::template("Finally! Some {{ . }} for Rust", "gtmpl");
88
//! assert_eq!(&output.unwrap(), "Finally! Some gtmpl for Rust");
99
//! ```
10+
11+
#![allow(clippy::result_large_err)]
12+
1013
pub mod error;
1114
mod exec;
1215
pub mod funcs;

src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ node!(NumberNode {
507507
});
508508

509509
impl NumberNode {
510-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp))]
510+
#[allow(clippy::float_cmp)]
511511
pub fn new(
512512
tr: TreeId,
513513
pos: Pos,

0 commit comments

Comments
 (0)