From 2b79d4e7c60757ca9d6027cdb1c8eebbfb533ddc Mon Sep 17 00:00:00 2001 From: Joseph Livesey Date: Fri, 29 Nov 2024 15:29:37 -0500 Subject: [PATCH] docs: fix import path in docstring --- Cargo.lock | 4 ++-- src/lib.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ad1f971..fbe01a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -838,7 +838,7 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "beacon-protos" version = "0.1.1" -source = "git+https://github.com/semiotic-ai/beacon-protos.git?branch=main#8110fadbe86c421f90651cc017cf75c83f88c218" +source = "git+https://github.com/semiotic-ai/beacon-protos.git?branch=main#3fe9a2e91dd1788d53f97acb6fd3616cdfa1fda3" dependencies = [ "bls", "firehose-rs", @@ -2087,7 +2087,7 @@ dependencies = [ [[package]] name = "firehose-rs" version = "0.1.0" -source = "git+https://github.com/semiotic-ai/firehose-rs.git?branch=main#55851f4e89ba4191c0dab83b3391d9c3b5bbbcf1" +source = "git+https://github.com/semiotic-ai/firehose-rs.git?branch=main#d6ac5c1f3228fffc4cfb0f1cf623a948477cf167" dependencies = [ "prost", "prost-build", diff --git a/src/lib.rs b/src/lib.rs index 5d1fc2e..b60e00e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,11 +8,11 @@ //! //! ## Fetching an Ethereum Block //! -//! ```no_run +//! ```rust,no_run //! # use firehose_client::{Chain, FirehoseClient}; -//! # use vee::EthBlock as Block; +//! # use vee::protos::EthBlock as Block; //! # #[tokio::main] -//! # async fn main() -> Result<(), vee::ProtosError> { +//! # async fn main() -> Result<(), vee::protos::ProtosError> { //! let mut client = FirehoseClient::new(Chain::Ethereum); //! //! if let Some(response) = client.fetch_block(20672593).await.unwrap().ok() { @@ -29,11 +29,11 @@ //! //! ## Streaming Ethereum Blocks //! -//! ```no_run +//! ```rust,no_run //! # use firehose_client::{Chain, FirehoseClient}; //! # use futures::StreamExt; //! # #[tokio::main] -//! # async fn main() -> Result<(), vee::ProtosError> { +//! # async fn main() -> Result<(), vee::protos::ProtosError> { //! const TOTAL_BLOCKS: u64 = 8192; //! const START_BLOCK: u64 = 19581798; //!