Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Mar 2, 2021
1 parent 824847d commit 5e37d6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions jormungandr/src/explorer/graphql/connections.rs
@@ -1,16 +1,6 @@
use super::scalars::{IndexCursor, TransactionCount, VotePlanCount, VoteStatusCount};
use super::{Block, Context, Pool, Transaction, VotePlanStatus, VoteStatus};
use crate::blockcfg::HeaderHash;
use async_graphql::*;
use std::convert::TryFrom;

pub struct PageInfo {
pub has_next_page: bool,
pub has_previous_page: bool,
pub start_cursor: Option<IndexCursor>,
pub end_cursor: Option<IndexCursor>,
}

pub struct ValidatedPaginationArguments<I> {
pub first: Option<usize>,
pub last: Option<usize>,
Expand Down
6 changes: 3 additions & 3 deletions jormungandr/src/explorer/graphql/mod.rs
Expand Up @@ -1739,11 +1739,11 @@ impl Query {
.await
}

pub async fn epoch(&self, context: &Context<'_>, id: EpochNumber) -> FieldResult<Epoch> {
pub async fn epoch(&self, _context: &Context<'_>, id: EpochNumber) -> FieldResult<Epoch> {
Epoch::from_epoch_number(id)
}

pub async fn address(&self, context: &Context<'_>, bech32: String) -> FieldResult<Address> {
pub async fn address(&self, _context: &Context<'_>, bech32: String) -> FieldResult<Address> {
Address::from_bech32(&bech32)
}

Expand All @@ -1760,7 +1760,7 @@ impl Query {
.await
}

pub async fn settings(&self, context: &Context<'_>) -> FieldResult<Settings> {
pub async fn settings(&self, _context: &Context<'_>) -> FieldResult<Settings> {
Ok(Settings {})
}

Expand Down

0 comments on commit 5e37d6e

Please sign in to comment.