Skip to content

Commit

Permalink
fix(json): just add latest youtube code
Browse files Browse the repository at this point in the history
It's good to see what actually changed in the json realm.
  • Loading branch information
Byron committed Mar 20, 2015
1 parent cfb8fae commit ff385e5
Show file tree
Hide file tree
Showing 4 changed files with 790 additions and 377 deletions.
2 changes: 1 addition & 1 deletion gen/youtube3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ google-youtube3 = "0.0.1"
```Rust
extern crate hyper;
extern crate "yup-oauth2" as oauth2;
extern crate "rustc-serialize" as rustc_serialize;
extern crate serde;
extern crate "google-youtube3" as youtube3;
use youtube3::Result;
use std::default::Default;
Expand Down
3 changes: 2 additions & 1 deletion gen/youtube3/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ keywords = ["youtube", "google", "protocol", "web", "api"]
hyper = "*"
mime = "*"
url = "*"
rustc-serialize = "*"
serde = "*"
serde_macros = "*"
yup-oauth2 = "*"
6 changes: 3 additions & 3 deletions gen/youtube3/src/cmn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ impl<T: Seek + Read> ReadSeek for T {}


/// A utility type which can decode a server response that indicates error
#[derive(RustcDecodable)]
#[derive(Deserialize)]
pub struct JsonServerError {
error: String,
error_description: Option<String>
pub error: String,
pub error_description: Option<String>
}


Expand Down
Loading

0 comments on commit ff385e5

Please sign in to comment.