This commit is contained in:
Christoph Walcher 2020-08-04 21:07:35 +02:00
parent e0a4988fcc
commit 737f62cb6e
No known key found for this signature in database
GPG key ID: A193164A4D05EE44

View file

@ -13,6 +13,13 @@ declare_clippy_lint! {
///
/// **Example:**
/// ```rust
/// enum ValType {
/// I32,
/// I64,
/// F32,
/// F64,
/// }
///
/// impl ValType {
/// pub fn bytes(self: Self) -> usize {
/// match self {
@ -26,6 +33,13 @@ declare_clippy_lint! {
/// Could be rewritten as
///
/// ```rust
/// enum ValType {
/// I32,
/// I64,
/// F32,
/// F64,
/// }
///
/// impl ValType {
/// pub fn bytes(self) -> usize {
/// match self {