Skip to content

Commit

Permalink
Fix clippy warnings (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Aug 22, 2022
1 parent c7e1fb4 commit 1cd39d7
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion enums/templates/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum {{ c_name }} {
{% for (name, _, _) in names -%}
{{ name }} = {{ loop.index0 }},
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_ccomment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Ccomment {
End = 0,
Nothing = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_cpp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Cpp {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_java.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Java {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Javascript {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_mozjs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Mozjs {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_preproc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Preproc {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Python {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Rust {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_tsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Tsx {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/language_typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use num_derive::FromPrimitive;

#[derive(Clone, Debug, PartialEq, FromPrimitive)]
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Typescript {
End = 0,
Identifier = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ macro_rules! get_language {
macro_rules! mk_enum {
( $( $camel:ident, $description:expr ),* ) => {
/// The list of supported languages.
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LANG {
$(
#[doc = $description]
Expand Down
2 changes: 1 addition & 1 deletion src/spaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::dump_metrics::*;
use crate::traits::*;

/// The list of supported space kinds.
#[derive(Clone, Copy, Debug, Default, PartialEq, Serialize)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum SpaceKind {
/// An unknown space
Expand Down

0 comments on commit 1cd39d7

Please sign in to comment.