Skip to content

Commit

Permalink
Clear some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed Nov 3, 2021
1 parent 506dd98 commit 43a9025
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/api/rcos/users/delete.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! RCOS API mutation to delete a user
use crate::api::rcos::prelude::*;
use crate::api::rcos::send_query;
use crate::error::TelescopeError;

Expand Down
2 changes: 1 addition & 1 deletion src/web/services/user/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::api::rcos::users::{delete::DeleteUser, profile::Profile, UserAccountT
use crate::error::TelescopeError;
use crate::templates::{forms::FormTemplate, jumbotron, Template};
use crate::web::services::auth::identity::{AuthenticationCookie, Identity};
use actix_web::{http::header::LOCATION, web::Form, HttpRequest, HttpResponse};
use actix_web::HttpRequest;
use crate::api::discord::global_discord_client;
use crate::api::rcos::users::accounts::lookup::AccountLookup;
use crate::env::global_config;
Expand Down
5 changes: 1 addition & 4 deletions src/web/services/user/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ async fn profile(

// Check if the target user is in the RCOS Discord.
// First parse the RCOS Discord Guild ID.
let rcos_discord: u64 =
global_config()
.discord_config
.rcos_guild_id();
let rcos_discord: u64 = global_config().discord_config.rcos_guild_id();

// Target user as member of RCOS discord.
let membership: Option<Member> = global_discord_client()
Expand Down

0 comments on commit 43a9025

Please sign in to comment.