Skip to content

Commit

Permalink
Fix visibility in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kuy committed Sep 28, 2019
1 parent 1051dda commit e7155d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions examples/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit e7155d7

Please sign in to comment.