@@ -17,7 +17,6 @@ pub struct Race {
1717 pub town_id : i64 ,
1818 pub name : String ,
1919 pub miles : f64 ,
20- pub street_address : Option < String > ,
2120 pub race_url : Option < String > ,
2221 pub start_at : chrono:: NaiveDateTime ,
2322 pub created_at : chrono:: NaiveDateTime ,
@@ -32,7 +31,6 @@ pub struct RaceView {
3231 pub town : String ,
3332 pub county : String ,
3433 pub miles : f64 ,
35- pub street_address : Option < String > ,
3634 pub race_url : Option < String > ,
3735 pub start_at : chrono:: NaiveDateTime ,
3836 pub created_at : chrono:: NaiveDateTime ,
@@ -76,7 +74,6 @@ pub struct NewRaceForm {
7674 pub distance_unit : DistanceUnit ,
7775 #[ serde( deserialize_with = "parse_no_seconds" ) ]
7876 pub start_at : NaiveDateTime ,
79- pub street_address : String ,
8077 pub race_url : String ,
8178}
8279
@@ -85,7 +82,6 @@ pub struct NewRace {
8582 pub town_id : i64 ,
8683 pub miles : Miles ,
8784 pub start_at : chrono:: NaiveDateTime ,
88- pub street_address : Option < String > ,
8985 pub race_url : Option < String > ,
9086}
9187
@@ -116,7 +112,6 @@ impl From<SubmitTown> for NewRace {
116112 town_id : form. town_id ,
117113 miles,
118114 start_at : form. start_at ,
119- street_address : None ,
120115 race_url : None ,
121116 }
122117 }
@@ -133,7 +128,6 @@ impl From<NewRaceForm> for NewRace {
133128 town_id : form. town_id ,
134129 miles,
135130 start_at : form. start_at ,
136- street_address : Some ( form. street_address ) ,
137131 race_url : Some ( form. race_url ) ,
138132 }
139133 }
0 commit comments