Skip to content

Commit

Permalink
fix: add ghost main() function for nightly/beta rust doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaarf committed Sep 25, 2024
1 parent 6bf98d3 commit d506d8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
//! a supported remote server and returns a [`Client`] handle to interact with it.
//!
//! ```no_run
//! # fn main() {}
//! # async fn main_fn() {
//! let client = codemp::Client::connect(
//! codemp::api::Config::new(
Expand All @@ -35,6 +36,7 @@
//! [`Client::join_workspace`] or create a new one with [`Client::create_workspace`].
//!
//! ```no_run
//! # fn main() {}
//! # 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!");
Expand All @@ -46,6 +48,7 @@
//! and one or more [`buffer::Controller`] to send and receive [`api::TextChange`]s.
//!
//! ```no_run
//! # fn main() {}
//! # async fn main_fn() {
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
//! # client.create_workspace("").await.unwrap();
Expand All @@ -62,6 +65,7 @@
//! guaranteed to converge.
//!
//! ```no_run
//! # fn main() {}
//! # async fn main_fn() {
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
//! # client.create_workspace("").await.unwrap();
Expand Down

0 comments on commit d506d8c

Please sign in to comment.