mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-14 23:33:52 +01:00
formatting
This commit is contained in:
parent
7cfe075da6
commit
23b01c4775
5 changed files with 18 additions and 17 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use colored::*;
|
||||
use crate::corrections::split_command;
|
||||
use colored::*;
|
||||
|
||||
pub fn highlight_difference(corrected_command: &str, last_command: &str) -> String {
|
||||
let mut highlighted_command = String::new();
|
||||
|
|
@ -8,7 +8,7 @@ pub fn highlight_difference(corrected_command: &str, last_command: &str) -> Stri
|
|||
let split_last_command = split_command(last_command);
|
||||
|
||||
for new in split_corrected_command {
|
||||
if new == "" {
|
||||
if new.is_empty() {
|
||||
continue;
|
||||
}
|
||||
let mut changed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue