Skip to content

Commit 391b234

Browse files
committed
Remove more json! usage (#2986)
1 parent ddada4e commit 391b234

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

src/builder/create_components.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::borrow::Cow;
22

33
use serde::Serialize;
4-
use serde_json::json;
54

65
use crate::model::prelude::*;
76

src/builder/create_interaction_response.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use std::borrow::Cow;
22
use std::collections::HashMap;
33

4-
use serde_json::json;
5-
64
use super::{
75
CreateActionRow,
86
CreateAllowedMentions,

src/http/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use reqwest::{Client, ClientBuilder, Response as ReqwestResponse, StatusCode};
1616
use secrecy::{ExposeSecret as _, Secret};
1717
use serde::de::DeserializeOwned;
1818
use serde::ser::SerializeSeq as _;
19-
use serde_json::{from_value, json, to_string, to_vec};
19+
use serde_json::{from_value, to_string, to_vec};
2020
use to_arraystring::ToArrayString as _;
2121
use tracing::{debug, warn};
2222

src/model/application/component_interaction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use serde::de::Error as DeError;
22
use serde::ser::{Serialize, SerializeMap as _};
3+
use serde_json::from_value;
34

45
#[cfg(feature = "model")]
56
use crate::builder::{

0 commit comments

Comments
 (0)