chore(code): update code matching latest jsons

This was particularly interesting as APIs went away
This commit is contained in:
Sebastian Thiel
2016-02-28 08:20:08 +01:00
parent 5094f61c88
commit b0c0196f50
670 changed files with 113862 additions and 61902 deletions

View File

@@ -414,7 +414,7 @@ impl TokenStorage for JsonTokenStorage {
Err(err) =>
match err.kind() {
io::ErrorKind::NotFound => Ok(()),
_ => Err(json::Error::IoError(err))
_ => Err(json::Error::Io(err))
},
Ok(_) => Ok(()),
}
@@ -427,7 +427,7 @@ impl TokenStorage for JsonTokenStorage {
Err(serde_err) => Err(serde_err),
}
},
Err(io_err) => Err(json::Error::IoError(io_err))
Err(io_err) => Err(json::Error::Io(io_err))
}
}
}
@@ -444,7 +444,7 @@ impl TokenStorage for JsonTokenStorage {
Err(io_err) => {
match io_err.kind() {
io::ErrorKind::NotFound => Ok(None),
_ => Err(json::Error::IoError(io_err))
_ => Err(json::Error::Io(io_err))
}
}
}
@@ -683,7 +683,7 @@ pub fn application_secret_from_directory(dir: &str,
= json::from_str(json_console_secret).unwrap();
match json::to_writer_pretty(&mut f, &console_secret) {
Err(serde_err) => match serde_err {
json::Error::IoError(err) => err,
json::Error::Io(err) => err,
_ => panic!("Unexpected serde error: {:#?}", serde_err)
},
Ok(_) => continue,
@@ -696,7 +696,7 @@ pub fn application_secret_from_directory(dir: &str,
},
Ok(f) => {
match json::de::from_reader::<_, ConsoleApplicationSecret>(f) {
Err(json::Error::IoError(err)) =>
Err(json::Error::Io(err)) =>
return secret_io_error(err),
Err(json_err) =>
return Err(CLIError::Configuration(

View File

@@ -22269,7 +22269,7 @@ fn main() {
let mut app = App::new("dfareporting2d3")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("0.3.3+20151109")
.version("0.3.3+20160128")
.about("Manage your DoubleClick Campaign Manager ad campaigns and reports.")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dfareporting2d3_cli")
.arg(Arg::with_name("url")