From 8b0946d4ab797d26b11e709e15d7e7cc1b89e433 Mon Sep 17 00:00:00 2001 From: Iikka Hauhio Date: Wed, 27 Feb 2019 13:53:49 +0200 Subject: [PATCH] fix field visibility --- Cargo.toml | 2 +- src/lib.rs | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 58871cc..4a7c9c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "conllu-rs" -version = "0.2.0" +version = "0.2.1" authors = ["Iikka Hauhio "] edition = "2018" diff --git a/src/lib.rs b/src/lib.rs index 2e1de8b..f568d0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,16 +5,16 @@ use std::fmt::Debug; #[derive(Debug, Clone)] pub struct Word { - id: usize, - form: String, - lemma: String, - upos: String, - xpos: String, - feats: HashMap, - head: usize, - deprel: String, - deps: HashMap, - misc: HashMap + pub id: usize, + pub form: String, + pub lemma: String, + pub upos: String, + pub xpos: String, + pub feats: HashMap, + pub head: usize, + pub deprel: String, + pub deps: HashMap, + pub misc: HashMap } pub fn parse_conllu(lines: impl Iterator) -> Vec> {