chore: cargo fmt run
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
152b235003
commit
7e8b8cc860
|
|
@ -16,9 +16,15 @@ pub struct Issue {
|
||||||
pub body: String,
|
pub body: String,
|
||||||
pub state: String,
|
pub state: String,
|
||||||
pub user: User,
|
pub user: User,
|
||||||
#[serde(default, deserialize_with = "crate::api::serde_util::deserialize_null_to_default")]
|
#[serde(
|
||||||
|
default,
|
||||||
|
deserialize_with = "crate::api::serde_util::deserialize_null_to_default"
|
||||||
|
)]
|
||||||
pub labels: Vec<Label>,
|
pub labels: Vec<Label>,
|
||||||
#[serde(default, deserialize_with = "crate::api::serde_util::deserialize_null_to_default")]
|
#[serde(
|
||||||
|
default,
|
||||||
|
deserialize_with = "crate::api::serde_util::deserialize_null_to_default"
|
||||||
|
)]
|
||||||
pub assignees: Vec<User>,
|
pub assignees: Vec<User>,
|
||||||
pub html_url: String,
|
pub html_url: String,
|
||||||
pub created_at: DateTime<Utc>,
|
pub created_at: DateTime<Utc>,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
pub mod hook;
|
pub mod hook;
|
||||||
pub mod issue;
|
pub mod issue;
|
||||||
pub(crate) mod serde_util;
|
|
||||||
pub mod label;
|
pub mod label;
|
||||||
pub mod notification;
|
pub mod notification;
|
||||||
pub mod org;
|
pub mod org;
|
||||||
|
|
@ -9,6 +8,7 @@ pub mod pull;
|
||||||
pub mod release;
|
pub mod release;
|
||||||
pub mod repo;
|
pub mod repo;
|
||||||
pub mod search;
|
pub mod search;
|
||||||
|
pub(crate) mod serde_util;
|
||||||
pub mod user;
|
pub mod user;
|
||||||
pub mod workflow;
|
pub mod workflow;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,10 @@ pub struct Pull {
|
||||||
pub body: String,
|
pub body: String,
|
||||||
pub state: String,
|
pub state: String,
|
||||||
pub user: User,
|
pub user: User,
|
||||||
#[serde(default, deserialize_with = "crate::api::serde_util::deserialize_null_to_default")]
|
#[serde(
|
||||||
|
default,
|
||||||
|
deserialize_with = "crate::api::serde_util::deserialize_null_to_default"
|
||||||
|
)]
|
||||||
pub labels: Vec<Label>,
|
pub labels: Vec<Label>,
|
||||||
pub html_url: String,
|
pub html_url: String,
|
||||||
pub head: Branch,
|
pub head: Branch,
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,7 @@ pub struct ViewArgs {
|
||||||
|
|
||||||
/// Choose between a positional repo arg and the `-R` flag.
|
/// Choose between a positional repo arg and the `-R` flag.
|
||||||
fn pick_repo<'a>(pos: Option<&'a String>, flag: Option<&'a String>) -> Option<&'a str> {
|
fn pick_repo<'a>(pos: Option<&'a String>, flag: Option<&'a String>) -> Option<&'a str> {
|
||||||
flag.map(|s| s.as_str())
|
flag.map(|s| s.as_str()).or(pos.map(|s| s.as_str()))
|
||||||
.or(pos.map(|s| s.as_str()))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Args)]
|
#[derive(Debug, Args)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue