Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Jan 7, 2025
1 parent a375851 commit 98dbec6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use chrono::{DateTime, Duration};
use serde::{Deserialize, Serialize};

pub fn credential_error(msg: String) -> DeviceFlowError {
DeviceFlowError::GitHubError(msg.into())
DeviceFlowError::GitHubError(msg)
}

pub fn send_request(
Expand Down Expand Up @@ -227,6 +227,6 @@ impl DeviceFlow {
fn calculate_expiry(expires_in: i64) -> String {
let expires_in = Duration::seconds(expires_in);
let mut expiry: DateTime<Utc> = Utc::now();
expiry = expiry + expires_in;
expiry += expires_in;
expiry.to_rfc3339()
}

0 comments on commit 98dbec6

Please sign in to comment.