Apply fixes from Clippy
This commit is contained in:
parent
2b612e294b
commit
513ffd1f12
7 changed files with 8 additions and 10 deletions
|
@ -55,7 +55,7 @@ pub struct JobMonitor {
|
|||
}
|
||||
|
||||
/// The state of a job.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum JobState {
|
||||
/// Waiting to begin.
|
||||
///
|
||||
|
@ -73,7 +73,7 @@ pub enum JobState {
|
|||
}
|
||||
|
||||
/// The type of a job.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum JobType {
|
||||
/// Meta.
|
||||
Meta,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! Deployment goals.
|
||||
|
||||
/// The goal of a deployment.
|
||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
pub enum Goal {
|
||||
/// Build the configurations only.
|
||||
Build,
|
||||
|
|
|
@ -37,7 +37,7 @@ pub struct Options {
|
|||
}
|
||||
|
||||
/// Which evaluator to use.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub enum Evaluator {
|
||||
Chunked,
|
||||
Streaming,
|
||||
|
|
|
@ -338,7 +338,7 @@ mod tests {
|
|||
Err(e) => match e {
|
||||
EvalError::Global(e) => {
|
||||
let message = format!("{}", e);
|
||||
assert!(message.find("No such file or directory").is_some());
|
||||
assert!(message.contains("No such file or directory"));
|
||||
}
|
||||
_ => {
|
||||
panic!("Expected a global error, got {:?}", e);
|
||||
|
|
|
@ -99,9 +99,7 @@ impl Host for Local {
|
|||
|
||||
execution.set_job(self.job.clone());
|
||||
|
||||
let result = execution.run().await;
|
||||
|
||||
result
|
||||
execution.run().await
|
||||
}
|
||||
|
||||
async fn get_current_system_profile(&mut self) -> ColmenaResult<Profile> {
|
||||
|
|
|
@ -67,7 +67,7 @@ struct KeySources {
|
|||
}
|
||||
|
||||
/// When to upload a given key.
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum UploadAt {
|
||||
/// Before activating the system profile.
|
||||
#[serde(rename = "pre-activation")]
|
||||
|
|
|
@ -80,7 +80,7 @@ pub struct Line {
|
|||
}
|
||||
|
||||
/// Style of a line.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum LineStyle {
|
||||
Normal,
|
||||
Success,
|
||||
|
|
Loading…
Reference in a new issue