mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-13 21:19:05 +01:00
chore(json-update): update json and regen all code
This commit is contained in:
@@ -94,6 +94,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -191,6 +192,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -246,6 +248,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -336,6 +339,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let mut value = json::value::to_value(&output_schema);
|
||||
remove_json_null_values(&mut value);
|
||||
json::to_writer_pretty(&mut ostream, &value).unwrap();
|
||||
ostream.flush().unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@@ -404,7 +408,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let auth = Authenticator::new( &secret, DefaultAuthenticatorDelegate,
|
||||
if opt.is_present("debug-auth") {
|
||||
hyper::Client::with_connector(mock::TeeConnector {
|
||||
connector: hyper::net::HttpConnector(None)
|
||||
connector: hyper::net::HttpsConnector::<hyper::net::Openssl>::default()
|
||||
})
|
||||
} else {
|
||||
hyper::Client::new()
|
||||
@@ -417,7 +421,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
let client =
|
||||
if opt.is_present("debug") {
|
||||
hyper::Client::with_connector(mock::TeeConnector {
|
||||
connector: hyper::net::HttpConnector(None)
|
||||
connector: hyper::net::HttpsConnector::<hyper::net::Openssl>::default()
|
||||
})
|
||||
} else {
|
||||
hyper::Client::new()
|
||||
@@ -563,7 +567,7 @@ fn main() {
|
||||
|
||||
let mut app = App::new("appstate1")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("0.3.0+20150414")
|
||||
.version("0.3.0+20150527")
|
||||
.about("The Google App State API.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_appstate1_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
|
||||
Reference in New Issue
Block a user