Skip to content

Commit

Permalink
make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Jan 4, 2024
1 parent 822cdce commit 8556e55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/vbyte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ mod tests {
}

#[test]
#[should_panic]
#[should_panic(expected = "vbyte too large")]
fn test_decode_too_large() {
init();
let mut buffer = encode_vbyte(usize::MAX);
Expand Down
2 changes: 1 addition & 1 deletion src/hdt_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl Graph for HdtGraph {
P: TermMatcher + 's,
O: TermMatcher + 's,
{
use HdtMatcher::*;
use HdtMatcher::{Constant, Other};
let xso = match self.unpack_matcher(&sm, &IdKind::Subject) {
None => return Box::new(iter::empty()),
Some(x) => x,
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ fn query(hdt: Hdt)
#![allow(clippy::doc_markdown)]
#![allow(clippy::if_not_else)]
#![allow(clippy::into_iter_without_iter)]
// multiple versions of syn crate in transitive dependencies
#![allow(clippy::multiple_crate_versions)]
/// Types for storing and reading data.
pub mod containers;
// Types for representing dictionaries.
Expand Down

0 comments on commit 8556e55

Please sign in to comment.