Skip to content

Commit 604883d

Browse files
committed
Fixed the len_zero clippy warning
1 parent 08d767b commit 604883d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ fn run_shell(vm: &mut VirtualMachine) -> PyResult {
206206
//};
207207
match rl.readline(&ps2) {
208208
Ok(line) => {
209-
if line.len() == 0 {
209+
if line.is_empty() {
210210
if shell_exec(vm, &input, vars.clone()) {
211211
rl.add_history_entry(input.trim_end());
212212
input = String::new();

0 commit comments

Comments
 (0)