Cleanup
This commit is contained in:
		
							parent
							
								
									9933ed6b1f
								
							
						
					
					
						commit
						0c2768068c
					
				| @ -4,14 +4,14 @@ use std::collections::BTreeMap; | |||||||
| 
 | 
 | ||||||
| use sehn::*; | use sehn::*; | ||||||
| 
 | 
 | ||||||
| fn print_and_clear(s: BaseSerializer<DefaultConfig, &mut GenericWriter<Vec<u8>>>) { | fn print_and_clear(s: BaseSerializer<DefaultConfig, &mut GenericBufferWriter<Vec<u8>>>) { | ||||||
| 	let out = s.into_inner(); | 	let out = s.into_inner(); | ||||||
| 	println!("{}", out.as_str()); | 	println!("{}", out.as_str()); | ||||||
| 	out.clear(); | 	out.clear(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| fn main() { | fn main() { | ||||||
| 	let mut w = GenericWriter::from(Vec::new()); | 	let mut w = GenericBufferWriter::from(Vec::new()); | ||||||
| 
 | 
 | ||||||
| 	///////////////////////////////////////////////////////////////////////////
 | 	///////////////////////////////////////////////////////////////////////////
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -114,7 +114,6 @@ impl GenericReadBuffer for Vec<u8> { | |||||||
| 		self.as_slice() | 		self.as_slice() | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	#[cfg(any(feature = "std", feature = "alloc"))] |  | ||||||
| 	fn to_vec(self) -> Vec<u8> { | 	fn to_vec(self) -> Vec<u8> { | ||||||
| 		self | 		self | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user