renamed mod to example

This commit is contained in:
bitfl0wer 2023-04-28 12:39:58 +02:00
parent 3099a0165b
commit f7217e877b
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ impl<'a, T: WebSocketEvent> GatewayEvent<'a, T> {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod example {
use super::*; use super::*;
use crate::api::types::GatewayResume; use crate::api::types::GatewayResume;
@ -92,7 +92,7 @@ mod test {
let second_consumer = Consumer; let second_consumer = Consumer;
match event.subscribe(&second_consumer) { match event.subscribe(&second_consumer) {
None => return, None => assert!(false),
Some(err) => println!("You cannot subscribe twice: {}", err), Some(err) => println!("You cannot subscribe twice: {}", err),
} }
} }