Skip to content

Commit bfb6fb6

Browse files
committed
chore: allow casting an issue into a report
Signed-off-by: azjezz <[email protected]>
1 parent 6c6c2c6 commit bfb6fb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,9 @@ impl std::fmt::Display for Report {
7676
Ok(())
7777
}
7878
}
79+
80+
impl Into<Report> for Issue {
81+
fn into(self) -> Report {
82+
Report { issues: vec![self] }
83+
}
84+
}

0 commit comments

Comments
 (0)