fix doctest, enable all features for docs.rs

This commit is contained in:
Vinzenz Schroeter 2024-10-12 19:49:45 +02:00
parent 9b618d4f35
commit 55524a69e2
3 changed files with 6 additions and 3 deletions

View file

@ -89,8 +89,8 @@ pub enum Command {
/// # use servicepoint::{Command, Connection, Origin}; /// # use servicepoint::{Command, Connection, Origin};
/// # let connection = Connection::Fake; /// # let connection = Connection::Fake;
/// use servicepoint::{CharGrid, Cp437Grid}; /// use servicepoint::{CharGrid, Cp437Grid};
/// let grid = CharGrid::from(&"Hello,\nWorld!"); /// let grid = CharGrid::from("Hello,\nWorld!");
/// let grid = Cp437Grid::from(grid); /// let grid = Cp437Grid::from(&grid);
/// connection.send(Command::Cp437Data(Origin::ZERO, grid)).expect("send failed"); /// connection.send(Command::Cp437Data(Origin::ZERO, grid)).expect("send failed");
/// ``` /// ```
/// ///

View file

@ -90,7 +90,7 @@ impl Connection {
/// ///
/// # Examples /// # Examples
/// ///
/// ```rust /// ```no_run
/// use tungstenite::http::Uri; /// use tungstenite::http::Uri;
/// use servicepoint::{Command, Connection}; /// use servicepoint::{Command, Connection};
/// let uri = "ws://localhost:8080".parse().unwrap(); /// let uri = "ws://localhost:8080".parse().unwrap();

View file

@ -23,3 +23,6 @@ features = ["all_compressions"]
[lints] [lints]
workspace = true workspace = true
[package.metadata.docs.rs]
all-features = true