We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14db0eb commit e361e3dCopy full SHA for e361e3d
src/lib.rs
@@ -110,8 +110,8 @@ impl Entropy {
110
}
111
112
/// Feedback to help choose better passwords. Set when `score` <= 2.
113
- pub fn feedback(&self) -> &Option<feedback::Feedback> {
114
- &self.feedback
+ pub fn feedback(&self) -> Option<&feedback::Feedback> {
+ self.feedback.as_ref()
115
116
117
/// The list of patterns the guess calculation was based on
0 commit comments