Skip to content

Commit

Permalink
Silence some dead code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed Jul 26, 2024
1 parent bd90c05 commit f0f821c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/external/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub trait AuthProvider: Send + Sync + Debug {
fn logged_in_user_info_url(&self) -> &'static str;
fn oauth_scopes(&self) -> &'static [&'static str];
fn make_oauth_client(&self, config: &Config) -> BasicClient;
#[allow(dead_code)]
fn make_user_info_url(&self, user_id: &str) -> String;
async fn parse_user_info_response(
&self,
Expand Down Expand Up @@ -122,6 +123,7 @@ pub trait AuthProvider: Send + Sync + Debug {
}
}

#[allow(dead_code)]
async fn get_user_info(
&self,
access_token: &AccessToken,
Expand Down
2 changes: 2 additions & 0 deletions src/external/sumo_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const RESPONSE_TIMEOUT: u64 = 20;
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BanzukeResponse {
#[allow(dead_code)]
pub basho_id: BashoId,
#[allow(dead_code)]
pub division: RankDivision,
pub east: Vec<RikishiResponse>,
pub west: Vec<RikishiResponse>,
Expand Down
1 change: 1 addition & 0 deletions src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mod user_agent;
type Result<T> = std::result::Result<T, HandlerError>;

#[derive(Debug)]
#[allow(dead_code)]
pub enum HandlerError {
NotFound(String),
MustBeLoggedIn,
Expand Down

0 comments on commit f0f821c

Please sign in to comment.