Merge pull request #3090 from matthiaskrgr/new_without_default_highlight

docs: make example in new_without_default lint syntax highlighted
This commit is contained in:
llogiq 2018-08-27 21:00:53 +02:00 committed by GitHub
commit 43c629ebac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ use crate::utils::sugg::DiagnosticBuilderExt;
///
/// **Example:**
///
/// ```rust,ignore
/// ```rust
/// struct Foo(Bar);
///
/// impl Foo {
@ -63,7 +63,7 @@ declare_clippy_lint! {
///
/// **Example:**
///
/// ```rust,ignore
/// ```rust
/// struct Foo;
///
/// impl Foo {