Skip to content

Commit 98178fc

Browse files
committed
Fix clippy warnings
1 parent 5fd2305 commit 98178fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jira/details.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::jira::api;
33
use crate::jira::comments;
44

55
fn show_detail_field(value: &json::JsonValue, field: String) {
6-
let hide_keys = vec![
6+
let hide_keys = [
77
"key".to_string(),
88
"summary".to_string(),
99
"description".to_string(),

src/jira/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn update_jira_ticket(ticket: String, key: String, entry: String) {
5656
update_json[update_key] = update_json_value.into();
5757
} else if fields["schema"]["type"] == "option" {
5858
let custom = json::object! {"value": value };
59-
update_json[update_key] = custom.into();
59+
update_json[update_key] = custom;
6060
} else {
6161
let update_json_value = get_object_by_name(&fields["allowedValues"], value);
6262
update_json[update_key] = update_json_value.into();

0 commit comments

Comments
 (0)