renamed mod to example
This commit is contained in:
parent
3099a0165b
commit
f7217e877b
|
@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue