We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy::format_push_string
1 parent d147828 commit 8222c5dCopy full SHA for 8222c5d
graphql_client/src/lib.rs
@@ -32,7 +32,7 @@ pub mod reqwest;
32
33
use serde::{Deserialize, Serialize};
34
use std::collections::HashMap;
35
-use std::fmt::{self, Display};
+use std::fmt::{self, Display, Write};
36
37
/// A convenience trait that can be used to build a GraphQL request body.
38
///
@@ -215,7 +215,7 @@ impl Display for Error {
215
fragments
216
.iter()
217
.fold(String::new(), |mut acc, item| {
218
- acc.push_str(&format!("{}/", item));
+ let _ = write!(acc, "{}/", item);
219
acc
220
})
221
.trim_end_matches('/')
0 commit comments