Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicceboy committed Nov 22, 2024
1 parent f6bf623 commit de35231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct Constraints {
extensible: bool,
}

impl<'constraint> Constraints {
impl Constraints {
/// Empty constraints.
pub const NONE: Self = Self {
value: None,
Expand All @@ -33,7 +33,7 @@ impl<'constraint> Constraints {
};

/// Creates a new set of constraints from a given slice.
pub const fn new(constraints: &'constraint [Constraint]) -> Self {
pub const fn new(constraints: &[Constraint]) -> Self {
let mut value: Option<Extensible<Value>> = None;
let mut size: Option<Extensible<Size>> = None;
let mut permitted_alphabet: Option<Extensible<PermittedAlphabet>> = None;
Expand Down

0 comments on commit de35231

Please sign in to comment.