Fix bad structure interface

This commit is contained in:
Pierre Hubert 2022-12-20 10:14:57 +01:00
parent 93bd795560
commit 991dc71c79
2 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View File

@ -349,7 +349,7 @@ dependencies = [
[[package]] [[package]]
name = "grammalecte_client" name = "grammalecte_client"
version = "0.1.1" version = "0.1.2"
dependencies = [ dependencies = [
"env_logger", "env_logger",
"log", "log",

View File

@ -296,7 +296,8 @@ pub struct SpellingError {
/// Response to a suggestion request /// Response to a suggestion request
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct SuggestResult { pub struct SuggestResult {
suggestions: Vec<String>, /// Suggestions returned by Grammalecte
pub suggestions: Vec<String>,
} }
/// The Grammalecte client itself /// The Grammalecte client itself