From f41f2c2f9c94417a86b7c89bc27bf5955d9bc1a1 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 25 Sep 2024 05:46:48 +0200 Subject: [PATCH] fix: mark tests as no_run: they require net access --- src/api/change.rs | 2 +- src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/change.rs b/src/api/change.rs index e844035..fe1e3e2 100644 --- a/src/api/change.rs +++ b/src/api/change.rs @@ -20,7 +20,7 @@ /// To delete a the fourth character we should send a. /// `TextChange { start: 3, end: 4, content: "".into(), hash: None }` /// -/// ```rust +/// ``` /// let change = codemp::api::TextChange { /// start: 6, end: 11, /// content: "mom".to_string(), hash: None diff --git a/src/lib.rs b/src/lib.rs index e84eb6d..2b86f77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ //! The main entrypoint is [`Client::connect`], which establishes an authenticated connection with //! a supported remote server and returns a [`Client`] handle to interact with it. //! -//! ```rust +//! ```no_run //! # async fn main_fn() { //! let client = codemp::Client::connect( //! codemp::api::Config::new( @@ -34,7 +34,7 @@ //! A [`Client`] can acquire a [`Workspace`] handle by joining an existing one it can access with //! [`Client::join_workspace`] or create a new one with [`Client::create_workspace`]. //! -//! ```rust, run +//! ```no_run //! # async fn main_fn() { //! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap(); //! client.create_workspace("my-workspace").await.expect("failed to create workspace!"); @@ -45,7 +45,7 @@ //! A [`Workspace`] handle can be used to acquire a [`cursor::Controller`] to track remote [`api::Cursor`]s //! and one or more [`buffer::Controller`] to send and receive [`api::TextChange`]s. //! -//! ```rust +//! ```no_run //! # async fn main_fn() { //! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap(); //! # client.create_workspace("").await.unwrap(); @@ -61,7 +61,7 @@ //! eventual consistency. Each [`api::TextChange`] is translated in a network counterpart that is //! guaranteed to converge. //! -//! ```rust +//! ```no_run //! # async fn main_fn() { //! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap(); //! # client.create_workspace("").await.unwrap();