Skip to content

Commit

Permalink
allowed expect in made since
Browse files Browse the repository at this point in the history
errors at this level are usually catastrophic
  • Loading branch information
Uewotm90 committed Dec 7, 2023
1 parent 2f9e6aa commit 688aadf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ impl Token {
///
/// assert_eq!(token.as_str(), "token");
/// ```
#[allow(dead_code)]
pub fn as_str(&self) -> &str {
&self.token
}
Expand All @@ -189,6 +190,7 @@ impl Token {
///
/// assert_eq!(token.token_type(), TokenType::AccessToken);
/// ```
#[allow(dead_code)]
pub fn token_type(&self) -> TokenType {
self.token_type.clone()
}
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use std::error::Error;
use std::sync::Arc;

#[tokio::main]
#[allow(clippy::expect_used)] // if errors make it out here, something catastrophic probably happened
async fn main() -> Result<(), Box<dyn Error>> {
dotenv().ok();

Expand Down

0 comments on commit 688aadf

Please sign in to comment.