Skip to content

Commit

Permalink
zeroidc cargo warnings (#2029)
Browse files Browse the repository at this point in the history
* fix unused struct member cargo warning

* fix unused import cargo warning

* fix unused return value cargo warning

---------

Co-authored-by: Grant Limberg <[email protected]>
  • Loading branch information
laduke and glimberg authored Jul 6, 2023
1 parent b82bdc7 commit 1ce08a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zeroidc/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub extern "C" fn zeroidc_delete(ptr: *mut ZeroIDC) {
idc.stop();

unsafe {
Box::from_raw(ptr);
let _ = Box::from_raw(ptr);
}
}

Expand Down
3 changes: 1 addition & 2 deletions zeroidc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use std::str::from_utf8;
use std::sync::{Arc, Mutex};
use std::thread::{sleep, spawn, JoinHandle};
use std::time::{Duration, SystemTime, UNIX_EPOCH};
#[cfg(debug_assertions)]
use time::{format_description, OffsetDateTime};

use url::Url;
Expand All @@ -59,7 +60,6 @@ pub struct ZeroIDC {
))]
struct Inner {
running: bool,
issuer: String,
auth_endpoint: String,
provider: String,
oidc_thread: Option<JoinHandle<()>>,
Expand Down Expand Up @@ -123,7 +123,6 @@ impl ZeroIDC {
let idc = ZeroIDC {
inner: Arc::new(Mutex::new(Inner {
running: false,
issuer: issuer.to_string(),
provider: provider.to_string(),
auth_endpoint: auth_ep.to_string(),
oidc_thread: None,
Expand Down

0 comments on commit 1ce08a6

Please sign in to comment.