Skip to content

Commit

Permalink
Change feedback to return Option<&Feedback> (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafcube authored May 23, 2024
1 parent 14db0eb commit e361e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ impl Entropy {
}

/// Feedback to help choose better passwords. Set when `score` <= 2.
pub fn feedback(&self) -> &Option<feedback::Feedback> {
&self.feedback
pub fn feedback(&self) -> Option<&feedback::Feedback> {
self.feedback.as_ref()
}

/// The list of patterns the guess calculation was based on
Expand Down

0 comments on commit e361e3d

Please sign in to comment.