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 useless_vec clippy warning
  • Loading branch information
ZapAnton committed Feb 12, 2019
commit 9144109f7d964143f57e9e1eca9f55417176493f
2 changes: 1 addition & 1 deletion vm/src/obj/objcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn init(context: &PyContext) {
context.set_attr(code_type, "__new__", context.new_rustfunc(code_new));
context.set_attr(code_type, "__repr__", context.new_rustfunc(code_repr));

for (name, f) in vec![
for (name, f) in &[
(
"co_argcount",
code_co_argcount as fn(&mut VirtualMachine, PyFuncArgs) -> PyResult,
Expand Down