From af033845b9237c9829dc38d60185f600454acf65 Mon Sep 17 00:00:00 2001 From: "Min S. Kim" Date: Sun, 15 Dec 2024 15:43:07 -0800 Subject: [PATCH] Remove redundant std:: prefix from type names --- src/archive.rs | 2 +- src/graphql.rs | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/archive.rs b/src/archive.rs index fd802f4..f27e753 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -82,7 +82,7 @@ impl ArchiveState { async fn auth( State(state): State, - bearer: std::result::Result>, TypedHeaderRejection>, + bearer: Result>, TypedHeaderRejection>, req: Request, next: Next, ) -> Result { diff --git a/src/graphql.rs b/src/graphql.rs index 65cd7b8..0023758 100644 --- a/src/graphql.rs +++ b/src/graphql.rs @@ -337,14 +337,10 @@ fn process_load_edges<'a, T, I, R>( first: Option, last: Option, prefix: Option<&[u8]>, -) -> ( - std::vec::Vec>, - bool, - bool, -) +) -> (Vec>, bool, bool) where T: database::Iterable<'a, I>, - I: std::iter::Iterator>, + I: Iterator>, R: database::UniqueKey, { let after = after.map(|cursor| cursor.0); @@ -375,7 +371,7 @@ fn load_edges_interim<'a, T, I, R>( ) -> Result<(Vec, bool, bool)> where T: database::Iterable<'a, I>, - I: std::iter::Iterator>, + I: Iterator>, R: database::UniqueKey, { let (nodes, has_previous, has_next) = @@ -399,7 +395,7 @@ fn load_edges<'a, T, I, R, N, A, NodesField>( ) -> Result>, N, A, EmptyFields, NodesField>> where T: database::Iterable<'a, I>, - I: std::iter::Iterator>, + I: Iterator>, R: database::UniqueKey, N: From + OutputType, A: ObjectType, @@ -434,7 +430,7 @@ fn collect_edges<'a, T, I, R>( ) -> (Vec>, bool) where T: database::Iterable<'a, I>, - I: std::iter::Iterator>, + I: Iterator>, R: database::UniqueKey, { let edges: Box> = if let Some(cursor) = from {