From 35ba7fae78f0d0163071facaff7e9ef1e38f8a8f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Mon, 2 Jan 2023 22:21:26 +0530 Subject: [PATCH] chore: apply lint --- src/identities.rs | 2 +- src/label.rs | 2 +- src/lib.rs | 8 ++++---- src/reaction.rs | 2 +- src/repository.rs | 2 +- src/topic.rs | 2 +- src/user.rs | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/identities.rs b/src/identities.rs index ad42671..f0fb0a4 100644 --- a/src/identities.rs +++ b/src/identities.rs @@ -21,6 +21,6 @@ use serde::{Deserialize, Serialize}; /// forge to another. The first element is the id in the source forge, the second element is the id /// in the destination forge. #[derive(Clone, Debug, Serialize, Deserialize, Default)] -pub struct Identities { +pub struct Identities { pub pairs: Vec, } diff --git a/src/label.rs b/src/label.rs index 76e38d3..2061e6b 100644 --- a/src/label.rs +++ b/src/label.rs @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; /// Label associated to an issue or a comment #[derive(Clone, Debug, Serialize, Deserialize, Default)] -pub struct Label { +pub struct Label { /// Unique identifier of the label pub index: usize, diff --git a/src/lib.rs b/src/lib.rs index 3a5c5c3..d0dc8fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,9 +14,9 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -pub mod user; -pub mod repository; -pub mod reaction; -pub mod label; pub mod identities; +pub mod label; +pub mod reaction; +pub mod repository; pub mod topic; +pub mod user; diff --git a/src/reaction.rs b/src/reaction.rs index a3bb771..4bbd665 100644 --- a/src/reaction.rs +++ b/src/reaction.rs @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; /// Reaction associated to an issue or a comment #[derive(Clone, Debug, Serialize, Deserialize, Default)] -pub struct Reaction { +pub struct Reaction { /// Unique identifier of the reaction pub index: usize, diff --git a/src/repository.rs b/src/repository.rs index d83a042..9569940 100644 --- a/src/repository.rs +++ b/src/repository.rs @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; /// VCS repository relative to a project. #[derive(Clone, Debug, Serialize, Deserialize, Default)] -pub struct Repository { +pub struct Repository { /// Suffix to add to the clone URL of the project to access the repository. pub name: String, } diff --git a/src/topic.rs b/src/topic.rs index bb16a3b..6221517 100644 --- a/src/topic.rs +++ b/src/topic.rs @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; /// A list of categories associated with a project. #[derive(Clone, Debug, Serialize, Deserialize, Default)] -pub struct Topic { +pub struct Topic { /// Unique identifier of the topic pub index: usize, diff --git a/src/user.rs b/src/user.rs index b4f9008..e8938b0 100644 --- a/src/user.rs +++ b/src/user.rs @@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize}; /// A forge user #[derive(Clone, Debug, Serialize, Deserialize, Default)] -pub struct User { +pub struct User { /// Unique identifier of the user pub index: usize,