Skip to content

Commit 8222c5d

Browse files
committed
fix clippy::format_push_string issue
1 parent d147828 commit 8222c5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql_client/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub mod reqwest;
3232

3333
use serde::{Deserialize, Serialize};
3434
use std::collections::HashMap;
35-
use std::fmt::{self, Display};
35+
use std::fmt::{self, Display, Write};
3636

3737
/// A convenience trait that can be used to build a GraphQL request body.
3838
///
@@ -215,7 +215,7 @@ impl Display for Error {
215215
fragments
216216
.iter()
217217
.fold(String::new(), |mut acc, item| {
218-
acc.push_str(&format!("{}/", item));
218+
let _ = write!(acc, "{}/", item);
219219
acc
220220
})
221221
.trim_end_matches('/')

0 commit comments

Comments
 (0)