Skip to content

Commit

Permalink
fix: use #[tokio::main] in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Dec 19, 2023
1 parent 83db628 commit 0e84694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ impl TwitchIdentity for Anonymous {
/// ```no_run
/// use brainrot::{Authenticated, Chat};
///
/// # fn main() -> anyhow::Result<()> {
/// # #[tokio::main]
/// # async fn main() -> anyhow::Result<()> {
/// let mut client = Chat::new("miyukiwei", Authenticated("yukifan4", "yfvzjqb705z12hrhy1zkwa9xt7v662")).await?;
/// # Ok(())
/// # }
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ impl Chat {
/// ```no_run
/// use brainrot::{Anonymous, Chat};
///
/// # fn main() -> anyhow::Result<()> {
/// # #[tokio::main]
/// # async fn main() -> anyhow::Result<()> {
/// let mut client = Chat::new("miyukiwei", Anonymous).await?;
/// # Ok(())
/// # }
Expand Down

0 comments on commit 0e84694

Please sign in to comment.