Skip to content

Commit 29e9630

Browse files
committed
chore: lintfix
1 parent 258aead commit 29e9630

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/catalyst-types/src/problem_report.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ pub struct Entry {
8181

8282
impl Entry {
8383
/// Gets the kind of the problem of the entry.
84+
#[must_use]
8485
pub fn kind(&self) -> &Kind {
8586
&self.kind
8687
}
8788

8889
/// Gets extra information of the entry.
90+
#[must_use]
8991
pub fn context(&self) -> &String {
9092
&self.context
9193
}
@@ -158,11 +160,13 @@ impl ProblemReport {
158160
}
159161

160162
/// Gets entries from the report.
163+
#[must_use]
161164
pub fn entries(&self) -> &ConcurrentVec<Entry> {
162165
&self.0.report.0
163166
}
164167

165168
/// Gets context from the report.
169+
#[must_use]
166170
pub fn context(&self) -> &String {
167171
&self.0.context
168172
}

0 commit comments

Comments
 (0)