diff --git a/src/rustlink.rs b/src/core.rs similarity index 99% rename from src/rustlink.rs rename to src/core.rs index 28963a1..12fb026 100644 --- a/src/rustlink.rs +++ b/src/core.rs @@ -47,7 +47,7 @@ pub struct Rustlink { /// which you can create by doing: /// ```rust /// use async_std::channel::unbounded; -/// use rustlink::config::Reflector; +/// use rustlink::core::Reflector; /// /// let (sender, receiver) = unbounded(); /// @@ -76,7 +76,7 @@ impl Rustlink { /// /// ```rust /// use async_std::channel::unbounded; - /// use rustlink::config::{Reflector, Rustlink}; + /// use rustlink::core::{Reflector, Rustlink}; /// /// #[tokio::main] /// diff --git a/src/fetcher/mod.rs b/src/fetcher/mod.rs index 8b9d082..d3244eb 100644 --- a/src/fetcher/mod.rs +++ b/src/fetcher/mod.rs @@ -4,8 +4,8 @@ use async_std::stream::StreamExt; use futures::{select, FutureExt}; use super::interface::{ChainlinkContract, Round}; -use crate::rustlink::Reflector::Sender; -use crate::rustlink::{Configuration, Rustlink}; +use crate::core::Reflector::Sender; +use crate::core::{Configuration, Rustlink}; /// Retrieves the price of an underlying asset from a particular contract async fn fetch_round_data_for_contract( diff --git a/src/lib.rs b/src/lib.rs index efb46f7..fef554b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -pub mod rustlink; +pub mod core; mod error; mod fetcher; mod interface; @@ -7,7 +7,7 @@ mod tests { use async_std::channel::unbounded; - use crate::rustlink::{Reflector, Rustlink}; + use crate::core::{Reflector, Rustlink}; #[tokio::test] async fn ensure_price_is_received() {