Skip to content

Commit

Permalink
Upgrade to edition 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisaphone committed Dec 6, 2018
1 parent 7cd446c commit 705255f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions brain-test-data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "brain-test-data"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
lazy_static = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion brain-test-data/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
let mut out = File::create(out_dir.join("recordings.rs")).unwrap();

writeln!(out, "use models::OneVOneScenario;").unwrap();
writeln!(out, "use crate::models::OneVOneScenario;").unwrap();
writeln!(out).unwrap();

for entry in csv_dir.read_dir().unwrap().map(Result::unwrap) {
Expand Down
1 change: 1 addition & 0 deletions brain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "brain"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
crossbeam-channel = "0.2.6"
Expand Down
2 changes: 1 addition & 1 deletion brain/src/behavior/higher_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Behavior for Chain {
));

let action = {
let mut front = match self.children.front_mut() {
let front = match self.children.front_mut() {
None => return Action::Return,
Some(b) => b,
};
Expand Down
2 changes: 1 addition & 1 deletion brain/src/routing/behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl FollowRoute {

let mut log = Vec::new();
let plan = {
let mut context = PlanningContext {
let context = PlanningContext {
game: &ctx.game,
start: ctx.me().into(),
ball_prediction: ctx.scenario.ball_prediction(),
Expand Down
2 changes: 1 addition & 1 deletion brain/src/routing/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl RoutePlan {

match plan.next {
Some(planner) => {
let mut ctx = PlanningContext {
let ctx = PlanningContext {
game: ctx.game,
start: state,
ball_prediction: &ctx.ball_prediction.hacky_expensive_slice(duration),
Expand Down
1 change: 1 addition & 0 deletions collect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "collect"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
csv = "1.0.2"
Expand Down
1 change: 1 addition & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "common"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
lazy_static = "1.1.0"
Expand Down
1 change: 1 addition & 0 deletions dom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "dom"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
nalgebra = "0.16.0"
Expand Down
1 change: 1 addition & 0 deletions oven/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "oven"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
lazy_static = "1.1.0"
Expand Down
1 change: 1 addition & 0 deletions play/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "play"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
chrono = "0.4.6"
Expand Down
1 change: 1 addition & 0 deletions simulate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "simulate"
version = "0.1.0"
authors = ["John Simon <john@whatisaph.one>"]
edition = "2018"

[dependencies]
lazy_static = "1.1.0"
Expand Down

0 comments on commit 705255f

Please sign in to comment.