Skip to content

Commit b943a85

Browse files
Fix lints
1 parent 67940b0 commit b943a85

File tree

11 files changed

+17
-27
lines changed

11 files changed

+17
-27
lines changed

src/adapters/backend/mod.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl BackendClient {
5757
}
5858
}
5959

60-
pub async fn lock_state(
60+
pub(crate) async fn lock_state(
6161
&self,
6262
_meta: &DeploymentMetadata,
6363
_state: &DeploymentState,
@@ -67,7 +67,7 @@ impl BackendClient {
6767
todo!()
6868
}
6969

70-
pub async fn refresh_lock(
70+
pub(crate) async fn refresh_lock(
7171
&self,
7272
_meta: &DeploymentMetadata,
7373
_state: &LockedState,
@@ -78,7 +78,7 @@ impl BackendClient {
7878
}
7979

8080
/// Release the lock on this state without completing it.
81-
pub async fn abandon_lock(
81+
pub(crate) async fn abandon_lock(
8282
&self,
8383
_meta: &DeploymentMetadata,
8484
_state: &LockedState,
@@ -88,11 +88,14 @@ impl BackendClient {
8888

8989
/// Poll the backend for in-progress states that have not yet been
9090
/// locked/claimed.
91-
pub async fn poll_for_state(&self, _meta: &DeploymentMetadata) -> Result<Vec<DeploymentState>> {
91+
pub(crate) async fn poll_for_state(
92+
&self,
93+
_meta: &DeploymentMetadata,
94+
) -> Result<Vec<DeploymentState>> {
9295
todo!()
9396
}
9497

95-
pub async fn mark_state_completed(
98+
pub(crate) async fn mark_state_completed(
9699
&self,
97100
_meta: &DeploymentMetadata,
98101
_state: &LockedState,
@@ -164,7 +167,7 @@ impl BackendClient {
164167
}
165168

166169
/// Upload a batch of observations to the backend.
167-
pub async fn upload_observations(
170+
pub(crate) async fn upload_observations(
168171
&self,
169172
meta: &DeploymentMetadata,
170173
data: Vec<StatusCode>,

src/adapters/ingresses/builder.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ impl Builder for AwsGatewayIngressBuilder {
7171
mod tests {
7272
use crate::adapters::BoxedIngress;
7373
use miette::{IntoDiagnostic, Result};
74-
use multitool_sdk::models::{
75-
IngressConfig, IngressConfigOneOf, IngressConfigOneOfAwsRestApiGateway,
76-
};
74+
use multitool_sdk::models::IngressConfig;
7775
use serde_json::{Value, json};
7876

7977
use super::IngressBuilder;

src/adapters/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
pub use backend::{ApplicationConfig, BackendClient};
2-
pub(crate) use backend::{
3-
ApplicationId, DeploymentId, DeploymentMetadata, LockedState, WorkspaceId,
4-
};
2+
pub(crate) use backend::{DeploymentMetadata, LockedState};
53

64
pub use ingresses::*;
75
pub use monitors::*;

src/adapters/platforms/builder.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ impl Builder for AwsLambdaPlatformBuilder {
6666
mod tests {
6767
use crate::{adapters::BoxedPlatform, artifacts::LambdaZip};
6868
use miette::{IntoDiagnostic, Result};
69-
use multitool_sdk::models::{
70-
PlatformConfig, PlatformConfigOneOf, PlatformConfigOneOfAwsLambda,
71-
};
69+
use multitool_sdk::models::PlatformConfig;
7270
use serde_json::{Value, json};
7371

7472
use super::PlatformBuilder;

src/fs/session.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use multitool_sdk::models::LoginSuccess;
21
use serde::{Deserialize, Serialize};
32

43
use super::{DirectoryType, StaticFile};

src/subsystems/controller/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ mod monitor;
113113

114114
#[cfg(test)]
115115
mod tests {
116-
use crate::{metrics::ResponseStatusCode, stats::CategoricalObservation};
117-
118116
use super::ControllerSubsystem;
119117
use miette::Report;
120118
use static_assertions::assert_impl_all;

src/subsystems/controller/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::time::Duration;
22

33
use async_trait::async_trait;
4-
use bon::{bon, builder};
4+
use bon::bon;
55
use futures_util::TryStreamExt;
66
use miette::{Report, Result};
77
use tokio::{

src/subsystems/monitor/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::fmt;
21
use std::sync::Arc;
32

43
use crate::adapters::{BoxedMonitor, StatusCode};
@@ -78,7 +77,7 @@ mod mail;
7877

7978
#[cfg(test)]
8079
mod tests {
81-
use crate::{adapters::StatusCode, metrics::ResponseStatusCode, stats::CategoricalObservation};
80+
use crate::adapters::StatusCode;
8281

8382
use super::MonitorSubsystem;
8483
use miette::Report;

src/subsystems/platform/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ use std::sync::Arc;
22

33
use async_trait::async_trait;
44
use mail::{DeployParams, PlatformMail, PromoteParams, YankParams};
5-
use miette::{IntoDiagnostic, Report, Result};
5+
use miette::{Report, Result};
66
use tokio::{
77
select,
8-
sync::mpsc::{self, Receiver, Sender, channel},
9-
task::JoinHandle,
8+
sync::mpsc::{self, Receiver, channel},
109
};
1110
use tokio_graceful_shutdown::{IntoSubsystem, SubsystemHandle};
1211

src/subsystems/relay/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use async_trait::async_trait;
22
use bon::bon;
3-
use chrono::{DateTime, Utc};
43
use miette::{IntoDiagnostic, Report, Result, bail};
5-
use multitool_sdk::models::DeploymentState;
64
use multitool_sdk::models::DeploymentStateType::{
75
DeployCanary, PromoteCanary, RollbackCanary, SetCanaryTraffic,
86
};

0 commit comments

Comments
 (0)