mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-26 17:03:43 +02:00
zeroidc cargo warnings (#2029)
* fix unused struct member cargo warning * fix unused import cargo warning * fix unused return value cargo warning --------- Co-authored-by: Grant Limberg <glimberg@users.noreply.github.com>
This commit is contained in:
parent
b82bdc7782
commit
1ce08a62a9
2 changed files with 2 additions and 3 deletions
|
@ -89,7 +89,7 @@ pub extern "C" fn zeroidc_delete(ptr: *mut ZeroIDC) {
|
||||||
idc.stop();
|
idc.stop();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
Box::from_raw(ptr);
|
let _ = Box::from_raw(ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ use std::str::from_utf8;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::thread::{sleep, spawn, JoinHandle};
|
use std::thread::{sleep, spawn, JoinHandle};
|
||||||
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
use time::{format_description, OffsetDateTime};
|
use time::{format_description, OffsetDateTime};
|
||||||
|
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
@ -59,7 +60,6 @@ pub struct ZeroIDC {
|
||||||
))]
|
))]
|
||||||
struct Inner {
|
struct Inner {
|
||||||
running: bool,
|
running: bool,
|
||||||
issuer: String,
|
|
||||||
auth_endpoint: String,
|
auth_endpoint: String,
|
||||||
provider: String,
|
provider: String,
|
||||||
oidc_thread: Option<JoinHandle<()>>,
|
oidc_thread: Option<JoinHandle<()>>,
|
||||||
|
@ -123,7 +123,6 @@ impl ZeroIDC {
|
||||||
let idc = ZeroIDC {
|
let idc = ZeroIDC {
|
||||||
inner: Arc::new(Mutex::new(Inner {
|
inner: Arc::new(Mutex::new(Inner {
|
||||||
running: false,
|
running: false,
|
||||||
issuer: issuer.to_string(),
|
|
||||||
provider: provider.to_string(),
|
provider: provider.to_string(),
|
||||||
auth_endpoint: auth_ep.to_string(),
|
auth_endpoint: auth_ep.to_string(),
|
||||||
oidc_thread: None,
|
oidc_thread: None,
|
||||||
|
|
Loading…
Add table
Reference in a new issue