Updated lints to reflect new clippy versions.

Moved `clippy::unsafe_derive_deserialize` allow to where it is explicitly allowed, instead of allowing it crate-wide.
This commit is contained in:
2020-09-09 11:56:59 +01:00
parent 7873c5eed3
commit ffd06d4f28
3 changed files with 8 additions and 9 deletions

View File

@@ -31,6 +31,7 @@ use std::{
/// on where the table is deserialized from and it's features / restrictions.
#[derive(PartialEq, Eq, Clone, Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::unsafe_derive_deserialize)] // We don't have any `unsafe` methods
pub struct Table {
/// All digimons in this table
pub digimons: Vec<Digimon>,

View File

@@ -21,6 +21,7 @@ use std::{
/// The decks table, where all decks are stored
#[derive(PartialEq, Eq, Clone, Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::unsafe_derive_deserialize)] // We don't have any `unsafe` methods
pub struct Table {
/// All decks
decks: Vec<Deck>,