Skip to content

Commit 809a42b

Browse files
committed
Remove some superflous 'static
Better to only require this in the outermost layer
1 parent bc4c92d commit 809a42b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/participant.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ fn send_discovery(channel: &mut Channel, info: &Info) {
9999
info!("sent participant discovery: {} {}({})", info.id, info.role, info.component);
100100
}
101101

102-
struct PortConsumer {
103-
participant: & 'static Participant,
102+
struct PortConsumer <'a> {
103+
participant: & 'a Participant,
104104
portname: String,
105105
outqueue: String, // FIXME: allow sending on any port, also multiple times
106106
}
@@ -119,7 +119,7 @@ fn send_out(channel: &mut Channel, exchange: String, data: Vec<u8>) {
119119
debug!("sent output");
120120
}
121121

122-
impl Consumer for PortConsumer {
122+
impl <'a>Consumer for PortConsumer<'a> {
123123
fn handle_delivery(&mut self,
124124
channel: &mut Channel,
125125
deliver: protocol::basic::Deliver,

0 commit comments

Comments
 (0)