Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cakevm committed Oct 27, 2024
1 parent e89a053 commit c2ba1bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/fetch_orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async fn main() {
}
};

if let Some(order) = result.orders.get(0) {
if let Some(order) = result.orders.first() {
println!("{:#?}", order);
} else {
println!("No orders found");
Expand Down
2 changes: 1 addition & 1 deletion examples/fetch_orders_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async fn main() {
for mut order in order_response.orders {
// normalize timestamps. Not all timestamps are in seconds
if order.created_at > 9999999999u64 {
order.created_at = order.created_at / 1000;
order.created_at /= 1000;
}
// Implement your own logic here
}
Expand Down

0 comments on commit c2ba1bf

Please sign in to comment.