add linting CI jobs
This commit is contained in:
parent
9974b2f99f
commit
aa2d9fe374
12 changed files with 98 additions and 68 deletions
|
|
@ -63,15 +63,15 @@ impl NewConnectionState {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<AccessPoint> for NewConnectionState {
|
||||
fn into(self) -> AccessPoint {
|
||||
match self {
|
||||
Self::EnterPassword {
|
||||
impl From<NewConnectionState> for AccessPoint {
|
||||
fn from(connection_state: NewConnectionState) -> Self {
|
||||
match connection_state {
|
||||
NewConnectionState::EnterPassword {
|
||||
access_point,
|
||||
password: _,
|
||||
} => access_point,
|
||||
Self::Waiting(access_point) => access_point,
|
||||
Self::Failure(access_point) => access_point,
|
||||
NewConnectionState::Waiting(access_point) => access_point,
|
||||
NewConnectionState::Failure(access_point) => access_point,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ pub async fn active_connections(
|
|||
let state = connection
|
||||
.state()
|
||||
.await
|
||||
.unwrap_or_else(|_| ActiveConnectionState::Unknown);
|
||||
.unwrap_or(ActiveConnectionState::Unknown);
|
||||
|
||||
if connection.vpn().await.unwrap_or_default() {
|
||||
info.push(ActiveConnectionInfo::Vpn {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue