Skip to content

Commit 4e2f90b

Browse files
fix: clippy lint errors
1 parent 70c29db commit 4e2f90b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contracts/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ impl PredictXContract {
3838
end_time: u64,
3939
outcomes: Vec<String>,
4040
) -> Result<u64, PredictXError> {
41-
if title.len() == 0 {
41+
if title.is_empty() {
4242
return Err(PredictXError::EmptyTitle);
4343
}
4444

45-
if description.len() == 0 {
45+
if description.is_empty() {
4646
return Err(PredictXError::EmptyDescription);
4747
}
4848

0 commit comments

Comments
 (0)