mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
fix doctest, enable all features for docs.rs
This commit is contained in:
parent
9b618d4f35
commit
55524a69e2
|
@ -89,8 +89,8 @@ pub enum Command {
|
|||
/// # use servicepoint::{Command, Connection, Origin};
|
||||
/// # let connection = Connection::Fake;
|
||||
/// use servicepoint::{CharGrid, Cp437Grid};
|
||||
/// let grid = CharGrid::from(&"Hello,\nWorld!");
|
||||
/// let grid = Cp437Grid::from(grid);
|
||||
/// let grid = CharGrid::from("Hello,\nWorld!");
|
||||
/// let grid = Cp437Grid::from(&grid);
|
||||
/// connection.send(Command::Cp437Data(Origin::ZERO, grid)).expect("send failed");
|
||||
/// ```
|
||||
///
|
||||
|
|
|
@ -90,7 +90,7 @@ impl Connection {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```no_run
|
||||
/// use tungstenite::http::Uri;
|
||||
/// use servicepoint::{Command, Connection};
|
||||
/// let uri = "ws://localhost:8080".parse().unwrap();
|
||||
|
|
|
@ -23,3 +23,6 @@ features = ["all_compressions"]
|
|||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
|
Loading…
Reference in a new issue