Skip to content

Commit

Permalink
Add 'static bound to Model trait
Browse files Browse the repository at this point in the history
Fix a typo

Signed-off-by: Tin Svagelj <tin.svagelj@live.com>
  • Loading branch information
Caellian committed Aug 21, 2023
1 parent 4b66446 commit 6d54ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ macro_rules! push {
}};
}

pub trait Model<'s> {
pub trait Model<'s>: 'static {
type I: InputConnectorList<'s> + HeterogeneousTuple + 'static;
type O: OutputConnectorList<'s> + HeterogeneousTuple + 'static;

Expand Down
2 changes: 1 addition & 1 deletion src/simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ impl<'c, 's: 'c> ConnectorCtx<'c, 's> {
event: Event<M>,
target: Option<ConnectorPath<'c>>,
time: impl Into<SimulationTime>,
) -> Result<(), SimulationError> {T
) -> Result<(), SimulationError> {
self.sim
.push_event_with_time_and_source(event, target, time, self.on_connector.clone())
}
Expand Down

0 comments on commit 6d54ebd

Please sign in to comment.