Skip to content

Commit f8ec522

Browse files
author
Marek Suchánek
committed
Apply clippy suggestions
1 parent 0106b85 commit f8ec522

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/access.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ impl JiraInstance {
186186
// If Pagination is set to ChunkSize, split the issue keys into chunk by chunk size
187187
// and request each chunk separately.
188188
if let Pagination::ChunkSize(chunk_size) = self.pagination {
189-
let paginated_issues = self.paginated_issues(&method, chunk_size).await;
190-
paginated_issues
189+
self.paginated_issues(&method, chunk_size).await
191190
// If Pagination is not set to ChunkSize, use a single chunk request for all issues.
192191
} else {
193192
let issues = self.chunk_of_issues(&method, 0).await?;
@@ -265,8 +264,7 @@ impl JiraInstance {
265264
// If Pagination is set to ChunkSize, split the issue keys into chunk by chunk size
266265
// and request each chunk separately.
267266
if let Pagination::ChunkSize(chunk_size) = self.pagination {
268-
let paginated_issues = self.paginated_issues(&method, chunk_size).await;
269-
paginated_issues
267+
self.paginated_issues(&method, chunk_size).await
270268
// If Pagination is not set to ChunkSize, use a single chunk request for all issues.
271269
} else {
272270
let issues = self.chunk_of_issues(&method, 0).await?;

src/issue_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use chrono::{DateTime, NaiveDate, Utc};
1818
/// This module replicates the fields in a Jira issue as strongly typed structs.
1919
/// Any extra fields that come from a custom Jira configuration are captured
2020
/// in the `extra` hash map in the parent struct.
21-
use serde::{Serialize, Deserialize};
21+
use serde::{Deserialize, Serialize};
2222
use serde_json::Value;
2323

2424
/// The response from Jira to a JQL query,

0 commit comments

Comments
 (0)