Skip to content

Commit

Permalink
Make nullable AuthenticatedUser fields optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwhite committed Sep 6, 2018
1 parent 9d623af commit 1c0e259
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 1c0e259

Please sign in to comment.