Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvide readability by removing explicit loops with function re-use #3

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

squell
Copy link

@squell squell commented Jan 7, 2025

Of course using .fill() is more inefficient than the loop, but it feels less C-y this way.

I've also renamed i since it's quite cryptic (and since I introduced a erase_feedback(sink, 1), which is nearly indistinguishable from erase_feedback(sink, i).

@squell squell force-pushed the pwfeedback branch 2 times, most recently from 2924143 to fcb64f8 Compare January 7, 2025 12:39
src/pam/rpassword.rs Outdated Show resolved Hide resolved
@squell squell force-pushed the pwfeedback branch 2 times, most recently from 626721b to a33e0b6 Compare January 7, 2025 12:45
@bjorn3
Copy link
Owner

bjorn3 commented Jan 7, 2025

CI is failing ever after two retries.

@squell
Copy link
Author

squell commented Jan 7, 2025

CI is failing ever after two retries.

Looks like a flaky test, succeeded now.

@bjorn3 bjorn3 merged commit 1e8ed5d into bjorn3:pwfeedback Jan 8, 2025
13 checks passed
@bjorn3 bjorn3 deleted the pwfeedback branch January 8, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants