Skip to content

Commit

Permalink
Merge pull request #153 from jasonwhite/fixes
Browse files Browse the repository at this point in the history
Make nullable AuthenticatedUser fields optional
  • Loading branch information
softprops authored Sep 6, 2018
2 parents 9d623af + 1c0e259 commit 08b7dfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/users/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ pub struct AuthenticatedUser {
pub site_admin: bool,

// extend over `User`:
pub name: String,
pub name: Option<String>,
pub company: Option<String>,
pub blog: String,
pub location: String,
pub email: String,
pub location: Option<String>,
pub email: Option<String>,
pub hireable: Option<bool>,
pub bio: String,
pub bio: Option<String>,
pub public_repos: u64,
pub public_gists: u64,
pub followers: u64,
Expand Down

0 comments on commit 08b7dfe

Please sign in to comment.