Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions rust_crate/src/signal_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};

/// Defines the methods that a type capable of
/// receiving Dart signals must implement.
pub trait DartSignalBinary
where
Self: Sized,
{
pub trait DartSignalBinary: Sized {
/// Returns the receiver that listens for signals from Dart.
///
/// If this function is called multiple times,
Expand All @@ -22,10 +19,7 @@ where

/// Defines the methods that a type capable of
/// receiving Dart signals must implement.
pub trait DartSignal
where
Self: Sized,
{
pub trait DartSignal: Sized {
/// Returns the receiver that listens for signals from Dart.
/// If this function is called multiple times,
/// only the most recent receiver remains active,
Expand Down