From 991dc71c79144c8dd4f6fdae24de4c4558b8895e Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 20 Dec 2022 10:14:57 +0100 Subject: [PATCH] Fix bad structure interface --- Cargo.lock | 2 +- src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 418d039..9cfecb4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -349,7 +349,7 @@ dependencies = [ [[package]] name = "grammalecte_client" -version = "0.1.1" +version = "0.1.2" dependencies = [ "env_logger", "log", diff --git a/src/lib.rs b/src/lib.rs index 303232f..3c49fd9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -296,7 +296,8 @@ pub struct SpellingError { /// Response to a suggestion request #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct SuggestResult { - suggestions: Vec, + /// Suggestions returned by Grammalecte + pub suggestions: Vec, } /// The Grammalecte client itself