blob: b24dfa39e011f8537138ae2d90720464f80c388f [file] [log] [blame]
error: direct implementation of `ToString`
--> tests/ui/to_string_trait_impl.rs:11:1
|
LL | / impl ToString for Point {
LL | |
LL | | fn to_string(&self) -> String {
LL | | format!("({}, {})", self.x, self.y)
LL | | }
LL | | }
| |_^
|
= help: prefer implementing `Display` instead
= note: `-D clippy::to-string-trait-impl` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::to_string_trait_impl)]`
error: aborting due to 1 previous error