Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Use shorthand struct initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
BMeu committed Nov 19, 2017
1 parent fa8d6c4 commit ce6126e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ impl Application {
#[cfg(feature = "display-fps")]
() => {
Application {
assets: assets,
window: window,
assets,
window,
field: Field::new([width, height - SCOREBOARD_HEIGHT]),
scoreboard: Scoreboard::new([width, SCOREBOARD_HEIGHT], title),
fps_counter: FPSCounter::new(),
Expand All @@ -91,8 +91,8 @@ impl Application {
#[cfg(not(feature = "display-fps"))]
() => {
Application {
assets: assets,
window: window,
assets,
window,
field: Field::new([width, height - SCOREBOARD_HEIGHT]),
scoreboard: Scoreboard::new([width, SCOREBOARD_HEIGHT], title),
}
Expand Down
2 changes: 1 addition & 1 deletion src/elements/ball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Ball {

Ball {
diameter: radius * 2.0,
position: position,
position,
speed: (speed_x, speed_y),
}
}
Expand Down

0 comments on commit ce6126e

Please sign in to comment.