forked from pierre/GrammalecteClient
Update dependencies
This commit is contained in:
@ -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)?;
|
||||
|
Reference in New Issue
Block a user