@@ -5,7 +5,7 @@ use crate::tests::util::github::next_gh_id;
55use crate :: tests:: util:: { MockCookieUser , RequestHelper } ;
66use crate :: util:: token:: HashedToken ;
77use chrono:: { DateTime , Utc } ;
8- use crates_io_github:: GithubUser ;
8+ use crates_io_github:: GitHubUser ;
99use diesel:: prelude:: * ;
1010use diesel_async:: RunQueryDsl ;
1111use http:: StatusCode ;
@@ -30,7 +30,7 @@ async fn updating_existing_user_doesnt_change_api_token() -> anyhow::Result<()>
3030 let token = token. plaintext ( ) ;
3131
3232 // Reuse gh_id but use new gh_login and gh_access_token
33- let gh_user = GithubUser {
33+ let gh_user = GitHubUser {
3434 id : gh_id,
3535 login : "bar" . to_string ( ) ,
3636 name : None ,
@@ -67,10 +67,10 @@ async fn github_without_email_does_not_overwrite_email() -> anyhow::Result<()> {
6767
6868 // Simulate logging in via GitHub with an account that has no email.
6969
70- // Because faking GitHub is terrible, call what GithubUser ::save_to_database does directly.
70+ // Because faking GitHub is terrible, call what GitHubUser ::save_to_database does directly.
7171 // Don't use app.db_new_user because it adds a verified email.
7272 let gh_id = next_gh_id ( ) ;
73- let gh_user = GithubUser {
73+ let gh_user = GitHubUser {
7474 id : gh_id,
7575 login : "arbitrary_username" . to_string ( ) ,
7676 name : None ,
@@ -94,7 +94,7 @@ async fn github_without_email_does_not_overwrite_email() -> anyhow::Result<()> {
9494
9595 // Simulate the same user logging in via GitHub again, still with no email in GitHub.
9696
97- let gh_user = GithubUser {
97+ let gh_user = GitHubUser {
9898 id : gh_id,
9999 login : "arbitrary_username" . to_string ( ) ,
100100 name : None ,
@@ -135,7 +135,7 @@ async fn github_with_email_does_not_overwrite_email() -> anyhow::Result<()> {
135135
136136 let emails = app. as_inner ( ) . emails . clone ( ) ;
137137
138- let gh_user = GithubUser {
138+ let gh_user = GitHubUser {
139139 // Use the same github ID to link to the existing account
140140 id : model. gh_id ,
141141 login : "arbitrary_username" . to_string ( ) ,
@@ -193,7 +193,7 @@ async fn test_confirm_user_email() -> anyhow::Result<()> {
193193
194194 let emails = & app. as_inner ( ) . emails ;
195195
196- let gh_user = GithubUser {
196+ let gh_user = GitHubUser {
197197 id : next_gh_id ( ) ,
198198 login : "arbitrary_username" . to_string ( ) ,
199199 name : None ,
@@ -239,7 +239,7 @@ async fn test_existing_user_email() -> anyhow::Result<()> {
239239
240240 let emails = & app. as_inner ( ) . emails ;
241241
242- let gh_user = GithubUser {
242+ let gh_user = GitHubUser {
243243 id : next_gh_id ( ) ,
244244 login : "arbitrary_username" . to_string ( ) ,
245245 name : None ,
0 commit comments