Skip to content

Commit

Permalink
Clear compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed Nov 17, 2021
1 parent a309668 commit e100e63
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/web/services/auth/oauth2_providers/discord.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Discord OAuth2 flow.
use crate::api::rcos::send_query;
use crate::api::rcos::users::accounts::reverse_lookup::ReverseLookup;
use crate::api::rcos::users::UserAccountType;
use crate::env::global_config;
Expand Down
17 changes: 7 additions & 10 deletions src/web/services/auth/oauth2_providers/github.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
use crate::api::rcos::users::accounts::reverse_lookup::ReverseLookup;
use crate::api::rcos::users::UserAccountType;
use crate::api::{
github::{
self,
users::authenticated_user::{
authenticated_user::{AuthenticatedUserViewer, Variables},
AuthenticatedUser,
},
use crate::api::github::{
self,
users::authenticated_user::{
authenticated_user::{AuthenticatedUserViewer, Variables},
AuthenticatedUser,
},
rcos,
};
use crate::api::rcos::users::accounts::reverse_lookup::ReverseLookup;
use crate::api::rcos::users::UserAccountType;
use crate::env::global_config;
use crate::error::TelescopeError;
use crate::web::services::auth::identity::{AuthenticationCookie, RootIdentity};
Expand Down
1 change: 0 additions & 1 deletion src/web/services/auth/oauth2_providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::api::rcos::users::accounts::link::LinkUserAccount;
use crate::api::rcos::users::accounts::reverse_lookup::ReverseLookup;
use crate::api::rcos::users::accounts::unlink::UnlinkUserAccount;
use crate::api::rcos::users::UserAccountType;
use crate::api::rcos::{send_query, users::accounts::reverse_lookup};
use crate::error::TelescopeError;
use crate::web::csrf;
use crate::web::services::auth::identity::{AuthenticationCookie, Identity, RootIdentity};
Expand Down
1 change: 0 additions & 1 deletion src/web/services/auth/rpi_cas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//! [here](https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol.html)
//! and work from RPI students who came before me.
use crate::api::rcos::send_query;
use crate::api::rcos::users::accounts::link::LinkUserAccount;
use crate::api::rcos::users::accounts::lookup::AccountLookup;
use crate::api::rcos::users::accounts::reverse_lookup::ReverseLookup;
Expand Down
1 change: 0 additions & 1 deletion src/web/services/meetings/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//! to finish meeting creation.
use crate::api::rcos::meetings::authorization_for::UserMeetingAuthorization;
use crate::api::rcos::meetings::creation;
use crate::api::rcos::meetings::creation::context::CreationContext;
use crate::api::rcos::meetings::creation::create::CreateMeeting;
use crate::api::rcos::meetings::creation::host_selection::HostSelection;
Expand Down
2 changes: 1 addition & 1 deletion src/web/services/user/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::templates::forms::FormTemplate;
use crate::templates::Template;

use crate::web::services::auth::identity::{AuthenticationCookie, Identity};
use actix_web::web::{Form, Path, Query, ServiceConfig};
use actix_web::web::{Form, Path, ServiceConfig};
use actix_web::{http::header::LOCATION, HttpRequest, HttpResponse};
use chrono::{Datelike, Local};
use serenity::model::guild::Member;
Expand Down
7 changes: 1 addition & 6 deletions src/web/services/user/register.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
use crate::api::github::users::authenticated_user::authenticated_user::AuthenticatedUserViewer;
use crate::api::rcos::send_query;
use crate::api::rcos::users::create::{
create_one_user::Variables as CreateOneUserVariables, CreateOneUser,
};
use crate::api::rcos::users::create::CreateOneUser;
use crate::api::rcos::users::{UserAccountType, UserRole};
use crate::error::TelescopeError;
use crate::templates::forms::FormTemplate;
Expand All @@ -13,7 +9,6 @@ use crate::web::services::auth::rpi_cas::RpiCasIdentity;
use actix_web::http::header::LOCATION;
use actix_web::web::Form;
use actix_web::{HttpRequest, HttpResponse, Responder};
use serenity::model::user::CurrentUser;
use uuid::Uuid;

/// The path from the templates directory to the registration template.
Expand Down

0 comments on commit e100e63

Please sign in to comment.