federation: Make all pub structs non_exhaustive
This commit is contained in:
		
							parent
							
								
									fae5385753
								
							
						
					
					
						commit
						030f23b9e9
					
				| @ -82,6 +82,7 @@ impl UnsignedEventContent { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /// Initial set of fields of `Request`.
 | /// Initial set of fields of `Request`.
 | ||||||
|  | #[allow(clippy::exhaustive_structs)] | ||||||
| pub struct RequestInit<'a> { | pub struct RequestInit<'a> { | ||||||
|     /// The room ID that the user is being invited to.
 |     /// The room ID that the user is being invited to.
 | ||||||
|     pub room_id: &'a RoomId, |     pub room_id: &'a RoomId, | ||||||
|  | |||||||
| @ -114,4 +114,12 @@ impl Response { | |||||||
| 
 | 
 | ||||||
| /// An empty object.
 | /// An empty object.
 | ||||||
| #[derive(Clone, Debug, Default, Deserialize, Serialize)] | #[derive(Clone, Debug, Default, Deserialize, Serialize)] | ||||||
|  | #[allow(clippy::exhaustive_structs)] | ||||||
| pub struct Empty {} | pub struct Empty {} | ||||||
|  | 
 | ||||||
|  | impl Empty { | ||||||
|  |     /// Create a new `Empty`.
 | ||||||
|  |     pub fn new() -> Self { | ||||||
|  |         Self {} | ||||||
|  |     } | ||||||
|  | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user