Skip to content

Commit

Permalink
Remove more json! usage (#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Oct 20, 2024
1 parent ddada4e commit 391b234
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/builder/create_components.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::borrow::Cow;

use serde::Serialize;
use serde_json::json;

use crate::model::prelude::*;

Expand Down
2 changes: 0 additions & 2 deletions src/builder/create_interaction_response.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use std::borrow::Cow;
use std::collections::HashMap;

use serde_json::json;

use super::{
CreateActionRow,
CreateAllowedMentions,
Expand Down
2 changes: 1 addition & 1 deletion src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use reqwest::{Client, ClientBuilder, Response as ReqwestResponse, StatusCode};
use secrecy::{ExposeSecret as _, Secret};
use serde::de::DeserializeOwned;
use serde::ser::SerializeSeq as _;
use serde_json::{from_value, json, to_string, to_vec};
use serde_json::{from_value, to_string, to_vec};
use to_arraystring::ToArrayString as _;
use tracing::{debug, warn};

Expand Down
1 change: 1 addition & 0 deletions src/model/application/component_interaction.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use serde::de::Error as DeError;
use serde::ser::{Serialize, SerializeMap as _};
use serde_json::from_value;

#[cfg(feature = "model")]
use crate::builder::{
Expand Down

0 comments on commit 391b234

Please sign in to comment.