Skip to content

Commit

Permalink
chore: cargo +nightly fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Sep 21, 2024
1 parent 1ece070 commit bd901c5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ newline_style = "Unix"
normalize_comments = true
normalize_doc_attributes = true
reorder_impl_items = true
style_version = "Two"
use_field_init_shorthand = true
wrap_comments = true
version = "Two"
2 changes: 1 addition & 1 deletion examples/task-submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use anyhow::Context;
use anyhow::Result;
use tes::v1::client;
use tes::v1::types::Task;
use tes::v1::types::task::Executor;
use tes::v1::types::task::Resources;
use tes::v1::types::Task;
use tracing_subscriber::EnvFilter;

#[tokio::main]
Expand Down
6 changes: 3 additions & 3 deletions src/v1/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ use tracing::trace;
use url::Url;

use crate::v1::client::tasks::View;
use crate::v1::types::responses::task;
use crate::v1::types::responses::task::MinimalTask;
use crate::v1::types::Task;
use crate::v1::types::responses::CreateTask;
use crate::v1::types::responses::ListTasks;
use crate::v1::types::responses::ServiceInfo;
use crate::v1::types::Task;
use crate::v1::types::responses::task;
use crate::v1::types::responses::task::MinimalTask;

mod builder;
mod options;
Expand Down
2 changes: 1 addition & 1 deletion src/v1/client/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
use reqwest::header::HeaderValue;
use reqwest::header::IntoHeaderName;
use reqwest_retry::policies::ExponentialBackoff;
use reqwest_retry::RetryTransientMiddleware;
use reqwest_retry::policies::ExponentialBackoff;
use url::Url;

use crate::v1::client::Client;
Expand Down
11 changes: 4 additions & 7 deletions src/v1/types/responses/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,10 @@ mod tests {
);
assert_eq!(result.environment.unwrap(), "test");
assert_eq!(result.version, "1.0.0");
assert_eq!(
result.storage.unwrap(),
vec![
"file:///path/to/local/funnel-storage",
"s3://ohsu-compbio-funnel/storage"
]
);
assert_eq!(result.storage.unwrap(), vec![
"file:///path/to/local/funnel-storage",
"s3://ohsu-compbio-funnel/storage"
]);
}

#[cfg(feature = "serde")]
Expand Down
2 changes: 1 addition & 1 deletion src/v1/types/responses/service/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use chrono::DateTime;
use chrono::Utc;
use url::Url;

use crate::v1::types::responses::ServiceInfo;
use crate::v1::types::responses::service::Artifact;
use crate::v1::types::responses::service::Organization;
use crate::v1::types::responses::service::ServiceType;
use crate::v1::types::responses::service::TES_VERSION;
use crate::v1::types::responses::ServiceInfo;

/// The default group to use for the service.
pub const DEFAULT_GROUP: &str = "org.ga4gh";
Expand Down
2 changes: 1 addition & 1 deletion src/v1/types/responses/task.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Responses related to tasks.
use crate::v1::types::task::State;
use crate::v1::types::Task;
use crate::v1::types::task::State;

/// A response for when `?view=MINIMAL` in a task endpoint.
#[derive(Clone, Debug, Default, Eq, PartialEq)]
Expand Down

0 comments on commit bd901c5

Please sign in to comment.