Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 957ff1f

Browse files
committed
lint
1 parent 2c22569 commit 957ff1f

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/api.rs

+3-11
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,17 @@ impl tide_disco::Error for SolverError {
3333
}
3434
}
3535

36+
#[derive(Default)]
3637
pub struct ApiOptions {
3738
pub api_path: Option<PathBuf>,
3839

39-
/// Additional API specification files to merge with `availability-api-path`.
40+
/// Additional API specification files to merge with `solver-api-path`.
4041
///
4142
/// These optional files may contain route definitions for application-specific routes that have
42-
/// been added as extensions to the basic availability API.
43+
/// been added as extensions to the basic solver API.
4344
pub extensions: Vec<toml::Value>,
4445
}
4546

46-
impl Default for ApiOptions {
47-
fn default() -> Self {
48-
Self {
49-
api_path: None,
50-
extensions: vec![],
51-
}
52-
}
53-
}
54-
5547
pub fn define_api<State, VERSION>(
5648
options: ApiOptions,
5749
) -> Result<Api<State, SolverError, VERSION>, ApiError>

0 commit comments

Comments
 (0)