Visitar URL original
Fixed several clippy warnings by ZapAnton · Pull Request #448 · RustPython/RustPython · GitHub
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
Next Next commit
Fixed the redundant_pattern_matching clippy warning
  • Loading branch information
ZapAnton committed Feb 12, 2019
commit 38930984ec4c2ccd9011ae3e4f84181518063c2a
2 changes: 1 addition & 1 deletion vm/src/obj/objrange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn range_new(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
]
);

let start = if let Some(_) = second {
let start = if second.is_some() {
objint::get_value(first)
} else {
BigInt::zero()
Expand Down