From 90a1f9b131532e829a4f24495b95a0546ec69f70 Mon Sep 17 00:00:00 2001 From: gemmaro Date: Mon, 15 Nov 2021 12:06:53 +0900 Subject: [PATCH 1/2] Change fields' visibilities to pub * Change * Some structs' fields' visibilities are changed from `pub(crate)` to `pub` --- src/elements/literal.rs | 8 ++++---- src/elements/special.rs | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/elements/literal.rs b/src/elements/literal.rs index 8d13db7..2c32dbd 100644 --- a/src/elements/literal.rs +++ b/src/elements/literal.rs @@ -18,16 +18,16 @@ pub enum Literal { #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct PlainText { - pub(crate) text: String, - pub(crate) formatting: Option, + pub text: String, + pub formatting: Option, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Symbol { - pub(crate) symbol: String, + pub symbol: String, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Number { - pub(crate) number: String, + pub number: String, } diff --git a/src/elements/special.rs b/src/elements/special.rs index 93b0280..d57d66d 100644 --- a/src/elements/special.rs +++ b/src/elements/special.rs @@ -33,43 +33,43 @@ pub struct Prod { #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Frac { - pub(crate) top: Box, - pub(crate) bottom: Box, + pub top: Box, + pub bottom: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Pow { - pub(crate) base: Box, - pub(crate) exp: Box, + pub base: Box, + pub exp: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Sub { - pub(crate) base: Box, - pub(crate) lower: Box, + pub base: Box, + pub lower: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Sqrt { - pub(crate) inner: Box, + pub inner: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Root { - pub(crate) base: Box, - pub(crate) inner: Box, + pub base: Box, + pub inner: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Integral { - pub(crate) top: Option>, - pub(crate) bottom: Option>, + pub top: Option>, + pub bottom: Option>, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct OIntegral { - pub(crate) top: Option>, - pub(crate) bottom: Option>, + pub top: Option>, + pub bottom: Option>, } impl Expression { From 8f0156f46fd74b832ae0596697f027b38905b7f8 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 6 Dec 2021 20:40:31 +0100 Subject: [PATCH 2/2] Increment version Signed-off-by: trivernis --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e2f93e9..e857abd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "asciimath-rs" description = "AsciiMath parser" repository = "https://github.com/trivernis/asciimath-rs" -version = "0.6.1" +version = "0.6.2" authors = ["trivernis "] edition = "2018" readme = "README.md" @@ -16,4 +16,4 @@ categories = ["mathematics", "parser-implementations"] charred = "0.3.3" maplit = "1.0.2" lazy_static = "1.4.0" -htmlescape = "0.3.1" \ No newline at end of file +htmlescape = "0.3.1"