Update dependencies
This commit is contained in:
parent
707821ca23
commit
7f8a37ce01
584
Cargo.lock
generated
584
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -13,9 +13,9 @@ categories = ["text-processing"]
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.89"
|
||||
reqwest = { version = "0.11.13", features = ["json"] }
|
||||
serde = { version = "1.0.151", features = ["derive"] }
|
||||
serde_json = "1.0.96"
|
||||
reqwest = { version = "0.11.18", features = ["json"] }
|
||||
serde = { version = "1.0.163", features = ["derive"] }
|
||||
log = "0.4.17"
|
||||
zip = { version = "0.6.3", optional = true }
|
||||
mktemp = { version = "0.5.0", optional = true }
|
||||
@ -27,4 +27,4 @@ embedded-server = ["zip", "mktemp", "rand", "port_scanner"]
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.10.0"
|
||||
tokio = { version = "1.23.0", features = ["full"] }
|
||||
tokio = { version = "1.28.1", features = ["full"] }
|
||||
|
@ -10,7 +10,7 @@
|
||||
//! temporary web server that will act as Grammalecte backend, instead
|
||||
//! of targetting an existing instance:
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! ```rust,ignore
|
||||
//! use grammalecte_client::GrammalecteClient;
|
||||
//!
|
||||
//! let msg = "Les ange sont inssuportables!";
|
||||
@ -24,7 +24,9 @@
|
||||
//!
|
||||
//! ## Suggestion
|
||||
//! You can also ask Grammalecte to give you valid alternatives words:
|
||||
//! ```rust,no_run
|
||||
//! ```rust,ignore
|
||||
//! use grammalecte_client::GrammalecteClient;
|
||||
//!
|
||||
//! let res = GrammalecteClient::start_server()
|
||||
//! .unwrap()
|
||||
//! .suggest("bonjou")
|
||||
@ -356,7 +358,7 @@ impl GrammalecteClient {
|
||||
log::debug!("Will use URL {} for spell check", url);
|
||||
|
||||
let options = options
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|t| (t.0.id(), t.1))
|
||||
.collect::<HashMap<_, _>>();
|
||||
let options = serde_json::to_string(&options)?;
|
||||
|
Loading…
Reference in New Issue
Block a user