Sort derive macros

This commit is contained in:
2025-05-24 17:59:25 -05:00
parent 2705900e10
commit da15506896
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
use clap::{Parser, Subcommand};
#[derive(Parser, Debug)]
#[derive(Debug, Parser)]
#[command(version, about, long_about = None)]
pub struct Args {
#[arg(short = 'o', long = "owner")]
@@ -12,7 +12,7 @@ pub struct Args {
pub command: Commands,
}
#[derive(Subcommand, Debug)]
#[derive(Debug, Subcommand)]
pub enum Commands {
ListReleases,
CreateRelease {

View File

@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
pub mod cli;
/// A struct matching a Gitea "Release" entry
#[derive(Deserialize, Debug, Serialize)]
#[derive(Debug, Deserialize, Serialize)]
pub struct ReleaseInfo {
id: usize,
tag_name: String,
@@ -22,7 +22,7 @@ pub struct ReleaseInfo {
author: Author,
}
#[derive(Deserialize, Debug, Serialize)]
#[derive(Debug, Deserialize, Serialize)]
pub struct Author {
id: usize,
login: String,
@@ -32,7 +32,7 @@ pub struct Author {
email: String,
}
#[derive(Serialize, Debug)]
#[derive(Debug, Serialize)]
pub struct CreateReleaseOption {
pub body: String,
pub draft: bool,