Skip to content

Commit 709edb5

Browse files
committed
tell clippy to allow define Into<Event> for OurEvent in tests
1 parent 26a0dd1 commit 709edb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/std/src/results/response.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ mod tests {
341341
msg: String,
342342
}
343343

344+
// allow define `into` rathan than `from` to define `into` clearly
345+
#[allow(clippy::from_over_into)]
344346
impl Into<Event> for OurEvent {
345347
fn into(self) -> Event {
346348
Event::new("our_event").add_attribute("msg", self.msg)

0 commit comments

Comments
 (0)