Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 13d4d1e

Browse files
committed
Resolve type_repetition_in_bounds clippy lint
error: this type has already been used as a bound predicate --> src/main.rs:311:5 | 311 | T: rustc_serialize::Encodable, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::type-repetition-in-bounds` implied by `-D clippy::pedantic` = help: consider combining the bounds: `T: Sized + rustc_serialize::Encodable` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
1 parent dc5ed2a commit 13d4d1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,13 @@ where
302302
feature = "lib-rustc-serialize",
303303
any(feature = "stringify-dom", feature = "stringify-struct")
304304
))]
305-
fn rustc_serialize_stringify<W, T: ?Sized>(
305+
fn rustc_serialize_stringify<W, T>(
306306
writer: W,
307307
value: &T,
308308
) -> rustc_serialize::json::EncodeResult<()>
309309
where
310310
W: Write,
311-
T: rustc_serialize::Encodable,
311+
T: ?Sized + rustc_serialize::Encodable,
312312
{
313313
let mut writer = adapter::IoWriteAsFmtWrite::new(writer);
314314
let mut encoder = rustc_serialize::json::Encoder::new(&mut writer);

0 commit comments

Comments
 (0)