Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed the len_zero clippy warning
  • Loading branch information
ZapAnton committed Feb 12, 2019
commit 604883dc8603f3bdf313ae41b3208ac5c38272d4
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ fn run_shell(vm: &mut VirtualMachine) -> PyResult {
//};
match rl.readline(&ps2) {
Ok(line) => {
if line.len() == 0 {
if line.is_empty() {
if shell_exec(vm, &input, vars.clone()) {
rl.add_history_entry(input.trim_end());
input = String::new();
Expand Down