From e7155d719f8475e518e5fab084ffa68ef7e6908c Mon Sep 17 00:00:00 2001 From: Yuki Kodama Date: Sat, 28 Sep 2019 20:27:32 +0900 Subject: [PATCH] Fix visibility in examples --- CHANGELOG.md | 1 + examples/basic.rs | 8 ++++---- examples/errors.rs | 6 +++--- examples/hello.rs | 6 +++--- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1807f74..4b993f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Breading Changes - Make `Client::with_base_url()` a method instead of a constructor [[#3](https://github.com/kuy/jsonbox-rs/issues/3)] +- Change visibility of `Client::read_by_id()` and `Client::read_by_query()` (accidently exposed in past versions) [[#2](https://github.com/kuy/jsonbox-rs/issues/2)] ## [0.1.2] 2019-09-28 diff --git a/examples/basic.rs b/examples/basic.rs index 30135fa..8036eff 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -4,10 +4,10 @@ use jsonbox::{Client, Error}; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug)] -pub struct Data { - pub name: String, - pub age: i32, - pub login: bool, +struct Data { + name: String, + age: i32, + login: bool, } impl Data { diff --git a/examples/errors.rs b/examples/errors.rs index 63f82f9..ac6552a 100644 --- a/examples/errors.rs +++ b/examples/errors.rs @@ -4,12 +4,12 @@ use jsonbox::{Client, Error}; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug)] -pub struct Data { - pub num: i32, +struct Data { + num: i32, } #[derive(Serialize, Deserialize, Debug)] -pub struct Empty; +struct Empty; fn main() { let client = Client::new("kuy_00000000000000000000"); diff --git a/examples/hello.rs b/examples/hello.rs index 4a1d224..e1b2172 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -5,9 +5,9 @@ use serde::{Deserialize, Serialize}; use std::io; #[derive(Serialize, Deserialize)] -pub struct Greeting { - pub name: String, - pub message: String, +struct Greeting { + name: String, + message: String, } fn main() -> Result<(), Error> {