Skip to content

Commit

Permalink
Fix new clippy lints, no functional change
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Sep 28, 2024
1 parent 11441f2 commit becb92f
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion aiger/src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub type AigerLit = Lit;
/// numbering.
///
/// Note that this is a type alias and thus does not provide any type checking.
pub type AigerVar = Var;

/// Partial mapping of AIGER variables to existing literals.
Expand Down
1 change: 0 additions & 1 deletion ids/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mod primitive_impls;
mod u8_range_types;

#[allow(unused_imports)] // docs

/// Used to construct constant values from an index.
///
/// Together with [`Id::FromConstIdIndex`], this works around the lack of support for `const fn` in
Expand Down
1 change: 1 addition & 0 deletions ids/tests/test_id.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)] // test only
use imctk_ids::*;

use std::{hash::BuildHasher, marker::PhantomData};
Expand Down
2 changes: 1 addition & 1 deletion ir/src/env/multimap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl<T> LitMultimap<T> {
pub fn lit_entries<'a>(
&'a self,
lit: Lit,
) -> impl Iterator<Item = <&'a T as BitXor<Pol>>::Output> + '_
) -> impl Iterator<Item = <&'a T as BitXor<Pol>>::Output> + 'a
where
&'a T: BitXor<Pol>,
{
Expand Down
1 change: 0 additions & 1 deletion ir/src/env/rebuild_egraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ impl Env {
/// Note that using [`Env::raw_nodes`] it may be possible to violate the egraph invariants in
/// ways that this method cannot repair. This does not happen when using the envrionment's
/// [`NodeBuilder`] methods.
pub fn rebuild_egraph(&mut self) {
let mut node_ids = vec![];

Expand Down
1 change: 0 additions & 1 deletion table_seq/src/table_seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pub use owned::OwnedSubtable;
/// `HashTable`-level methods that operate on an individual subtable instead of the collection of
/// all subtables. For methods that operate on all entries of all subtables we include `flat` suffix
/// or prefix.
pub struct TableSeq<T> {
_phantom: PhantomData<T>,
allocators: Vec<NodeAllocator<T>>,
Expand Down
1 change: 1 addition & 0 deletions table_seq/tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)] // test only
use std::{
fmt::Debug,
hash::{BuildHasher, BuildHasherDefault, Hash},
Expand Down

0 comments on commit becb92f

Please sign in to comment.