Skip to content

Commit

Permalink
chore(lib): multithreaded is one word
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Feb 7, 2023
1 parent 7878ec7 commit 46a8032
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ tokio = {version = "^1.0", features = ["macros"]}

[features]
annotate = ["dep:annotate-snippets"]
cli = ["annotate", "color", "dep:clap", "dep:is-terminal", "multi-threaded"]
cli = ["annotate", "color", "dep:clap", "dep:is-terminal", "multithreaded"]
cli-complete = ["cli", "clap_complete"]
color = ["annotate-snippets?/color", "dep:termcolor"]
default = ["cli", "native-tls"]
docker = []
full = ["annotate", "cli-complete", "color", "docker", "unstable"]
multi-threaded = ["dep:tokio"]
multithreaded = ["dep:tokio"]
native-tls = ["reqwest/native-tls"]
native-tls-vendored = ["reqwest/native-tls-vendored"]
unstable = []
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
- **cli-complete**: Adds commands to generate completion files for various shells. This feature also activates the **cli** feature. Enter `ltrs completions --help` to get help with installing completion files.
- **color**: Enables color outputting in the terminal. If **cli** feature is also enable, the `--color=<WHEN>` option will be available.
- **full**: Enables all features that are mutually compatible (i.e., `annotate`, `cli`, `cli-complete`, `color`, `docker`, and `unstable`).
- **multi-threaded**: Enables multi-threaded requests.
- **multithreaded**: Enables multithreaded requests.
- **native-tls-vendored**: Enables the `vendored` feature of `native-tls`. This or `native-tls` should be activated if you are planning to use HTTPS servers.
- **unstable**: Adds more fields to JSON responses that are not present in the [Model | Example Value](https://languagetool.org/http-api/swagger-ui/#!/default/) but might be present in some cases. All added fields are optional, hence the `Option` around them.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub enum Error {
InvalidFilename(String),

/// Error when joining multiple futures.
#[cfg(feature = "multi-threaded")]
#[cfg(feature = "multithreaded")]
#[error(transparent)]
JoinError(#[from] tokio::task::JoinError),
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ impl ServerClient {
/// # Panics
///
/// If any of the requests has `self.text` field which is none.
#[cfg(feature = "multi-threaded")]
#[cfg(feature = "multithreaded")]
pub async fn check_multiple_and_join(
&self,
requests: Vec<CheckRequest>,
Expand Down

0 comments on commit 46a8032

Please sign in to comment.