Skip to content

Commit

Permalink
chore: Fix unused warnings on default features (#1618)
Browse files Browse the repository at this point in the history
Fixes two unused import errors that only appeared when ignoring some
features.
We test `cargo clippy --all-features` on CI, so this didn't get flagged.

```
warning: unused import: `poly_func::PolyFuncTypeBase`
  --> hugr-core/src/types.rs:19:16
   |
19 | pub(crate) use poly_func::PolyFuncTypeBase;
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `signature::FuncTypeBase`
  --> hugr-core/src/types.rs:21:16
   |
21 | pub(crate) use signature::FuncTypeBase;
   |                ^^^
```
  • Loading branch information
aborgna-q authored Oct 29, 2024
1 parent 01b12ea commit fed74b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hugr-core/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ use crate::types::type_param::check_type_arg;
use crate::utils::display_list_with_separator;
pub use check::SumTypeError;
pub use custom::CustomType;
pub(crate) use poly_func::PolyFuncTypeBase;
pub use poly_func::{PolyFuncType, PolyFuncTypeRV};
pub(crate) use signature::FuncTypeBase;
pub use signature::{FuncValueType, Signature};
use smol_str::SmolStr;
pub use type_param::TypeArg;
pub use type_row::{TypeRow, TypeRowRV};

// Unused in --no-features
#[allow(unused_imports)]
pub(crate) use poly_func::PolyFuncTypeBase;
#[allow(unused_imports)]
pub(crate) use signature::FuncTypeBase;

use itertools::FoldWhile::{Continue, Done};
use itertools::{repeat_n, Itertools};
#[cfg(test)]
Expand Down

0 comments on commit fed74b5

Please sign in to comment.