Skip to content

Commit

Permalink
feat: Re-export client
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmanjiro13 committed Jan 9, 2023
1 parent 02d2203 commit e9c666a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tokio-fluent = "0.2.1"
```rust
use std::collections::HashMap;

use tokio_fluent::client::{Client, Config, FluentClient};
use tokio_fluent::{Client, Config, FluentClient};
use tokio_fluent::record::{Map, Value};
use tokio_fluent::record_map;

Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! ## Example
//!
//! ```no_run
//! use tokio_fluent::client::{Client, Config, FluentClient};
//! use tokio_fluent::{Client, Config, FluentClient};
//! use tokio_fluent::record::{Map, Value};
//!
//! #[tokio::main]
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! use std::collections::HashMap;
//!
//! use tokio_fluent::record_map;
//! use tokio_fluent::client::{Client, Config, FluentClient};
//! use tokio_fluent::{Client, Config, FluentClient};
//! use tokio_fluent::record::{Map, Value};
//!
//! #[tokio::main]
Expand Down Expand Up @@ -34,3 +34,5 @@
pub mod client;
pub mod record;
mod worker;

pub use client::{Client, Config, FluentClient};

0 comments on commit e9c666a

Please sign in to comment.