cargo fmt
parent
9ee8a2d011
commit
d4c9bb3cec
|
@ -16,8 +16,8 @@
|
||||||
use crate::events::collections::all::RoomEvent;
|
use crate::events::collections::all::RoomEvent;
|
||||||
use crate::models::Room;
|
use crate::models::Room;
|
||||||
|
|
||||||
// JUST AN IDEA
|
// JUST AN IDEA
|
||||||
//
|
//
|
||||||
|
|
||||||
/// This is just a thought I had. Making users impl a trait instead of writing callbacks for events
|
/// This is just a thought I had. Making users impl a trait instead of writing callbacks for events
|
||||||
/// could give the chance for really good documentation for each event?
|
/// could give the chance for really good documentation for each event?
|
||||||
|
@ -43,5 +43,3 @@ pub trait EventEmitter {
|
||||||
/// Any event that alters the state of the room's members
|
/// Any event that alters the state of the room's members
|
||||||
fn on_room_member(&mut self, _: &Room, _: &RoomEvent) {}
|
fn on_room_member(&mut self, _: &Room, _: &RoomEvent) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,4 +12,3 @@
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue