QoL improvement and Bug fix

This commit is contained in:
Maddox Werts 2024-06-15 17:25:15 -04:00
parent 790fba496c
commit 71e51adb4c

View file

@ -185,7 +185,7 @@ pub fn int_list(manager: &mut manager::Manager){
// Listing out passwords
println!(" - {} All Passwords {} - ", COLOR_YELLOW, COLOR_RESET);
for i in 0..passwords.len()-1 {
println!("{0}{1}{2}) {3}{4}{2}\t({5}{6}{2})", COLOR_GREEN, i, COLOR_RESET, COLOR_CYAN, passwords[i].name, COLOR_MAGENTA, passwords[i].user);
for i in 0..passwords.len() {
println!("{0}{1}{2}) {3}{4}{2}\t({5}{6}{2})", COLOR_GREEN, i+1, COLOR_RESET, COLOR_CYAN, passwords[i].name, COLOR_MAGENTA, passwords[i].user);
}
}