File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl Service for Api {
59
59
60
60
#[ derive( Deserialize ) ]
61
61
struct Config {
62
- addr : SocketAddr ,
62
+ address : SocketAddr ,
63
63
}
64
64
65
65
quick_main ! ( || -> Result <( ) > {
@@ -92,11 +92,11 @@ quick_main!(|| -> Result<()> {
92
92
fh. read_to_end( & mut buf) . chain_err( || "Could not read config file" ) ?;
93
93
toml:: from_slice( & buf) . chain_err( || "Config file contained invalid TOML" ) ?
94
94
} else {
95
- let addr = matches. value_of( "addr" ) . unwrap( ) . parse( ) . chain_err( || "Invalid server address" ) ?;
96
- Config { addr }
95
+ let address = matches. value_of( "addr" ) . unwrap( ) . parse( ) . chain_err( || "Invalid server address" ) ?;
96
+ Config { address }
97
97
} ;
98
98
99
- let server = TcpServer :: new( JsonProto , config. addr ) ;
99
+ let server = TcpServer :: new( JsonProto , config. address ) ;
100
100
server. serve( || Ok ( Api ) ) ;
101
101
Ok ( ( ) )
102
102
} ) ;
You can’t perform that action at this time.
0 commit comments