fix doctest, enable all features for docs.rs
This commit is contained in:
		
							parent
							
								
									9b618d4f35
								
							
						
					
					
						commit
						55524a69e2
					
				
					 3 changed files with 6 additions and 3 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vinzenz Schroeter
						Vinzenz Schroeter