mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-10 12:54:44 +00:00
fix clippy
This commit is contained in:
parent
c7ec8c7d9b
commit
9a90d5be40
2 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@ macro_rules! monero_rpc_base_link {
|
||||||
///
|
///
|
||||||
#[doc = monero_rpc_base_link!(95..=99)]
|
#[doc = monero_rpc_base_link!(95..=99)]
|
||||||
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub struct EmptyRequestBase;
|
pub struct EmptyRequestBase;
|
||||||
|
|
||||||
#[cfg(feature = "epee")]
|
#[cfg(feature = "epee")]
|
||||||
|
@ -51,7 +51,7 @@ epee_object! {
|
||||||
///
|
///
|
||||||
#[doc = monero_rpc_base_link!(114..=122)]
|
#[doc = monero_rpc_base_link!(114..=122)]
|
||||||
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub struct AccessRequestBase {
|
pub struct AccessRequestBase {
|
||||||
/// The RPC payment client.
|
/// The RPC payment client.
|
||||||
pub client: String,
|
pub client: String,
|
||||||
|
@ -70,7 +70,7 @@ epee_object! {
|
||||||
/// any extra fields, e.g. TODO.
|
/// any extra fields, e.g. TODO.
|
||||||
// [`CalcPowResponse`](crate::json::CalcPowResponse).
|
// [`CalcPowResponse`](crate::json::CalcPowResponse).
|
||||||
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub struct EmptyResponseBase;
|
pub struct EmptyResponseBase;
|
||||||
|
|
||||||
#[cfg(feature = "epee")]
|
#[cfg(feature = "epee")]
|
||||||
|
@ -82,7 +82,7 @@ epee_object! {
|
||||||
///
|
///
|
||||||
#[doc = monero_rpc_base_link!(101..=112)]
|
#[doc = monero_rpc_base_link!(101..=112)]
|
||||||
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub struct ResponseBase {
|
pub struct ResponseBase {
|
||||||
/// General RPC error code. [`Status::Ok`] means everything looks good.
|
/// General RPC error code. [`Status::Ok`] means everything looks good.
|
||||||
pub status: Status,
|
pub status: Status,
|
||||||
|
@ -103,7 +103,7 @@ epee_object! {
|
||||||
///
|
///
|
||||||
#[doc = monero_rpc_base_link!(124..=136)]
|
#[doc = monero_rpc_base_link!(124..=136)]
|
||||||
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub struct AccessResponseBase {
|
pub struct AccessResponseBase {
|
||||||
/// A flattened [`ResponseBase`].
|
/// A flattened [`ResponseBase`].
|
||||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||||
|
|
|
@ -62,7 +62,7 @@ use crate::constants::{
|
||||||
/// assert_eq!(format!("{:?}", unknown), "Unknown");
|
/// assert_eq!(format!("{:?}", unknown), "Unknown");
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub enum Status {
|
pub enum Status {
|
||||||
// FIXME:
|
// FIXME:
|
||||||
// `#[serde(rename = "")]` only takes raw string literals?
|
// `#[serde(rename = "")]` only takes raw string literals?
|
||||||
|
|
Loading…
Reference in a new issue