From 7ec67e332646d62186500ade9bf55ae57eef4da0 Mon Sep 17 00:00:00 2001 From: Sunli Date: Mon, 2 May 2022 16:38:29 +0800 Subject: [PATCH] Update connection type 2 --- src/types/connection/mod.rs | 4 ++-- tests/connection.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/types/connection/mod.rs b/src/types/connection/mod.rs index 718b39e0..73592dd2 100644 --- a/src/types/connection/mod.rs +++ b/src/types/connection/mod.rs @@ -75,7 +75,7 @@ impl ConnectionNameType for DefaultConnectionName { /// before: Option, /// first: Option, /// last: Option -/// ) -> Result> { +/// ) -> Result> { /// query(after, before, first, last, |after, before, first, last| async move { /// let mut start = after.map(|after| after + 1).unwrap_or(0); /// let mut end = before.unwrap_or(10000); @@ -161,7 +161,7 @@ impl ConnectionNameType for DefaultConnectionName { /// before: Option, /// first: Option, /// last: Option, -/// ) -> Connection { +/// ) -> Connection { /// let mut connection = Connection::new(false, false); /// connection.edges.push(Edge::new(1, MyObj { a: 100, b: "abc".to_string() })); /// connection diff --git a/tests/connection.rs b/tests/connection.rs index 9c96f1cb..45710d0b 100644 --- a/tests/connection.rs +++ b/tests/connection.rs @@ -22,9 +22,7 @@ pub async fn test_connection_additional_fields() { before: Option, first: Option, last: Option, - ) -> Result< - Connection, - > { + ) -> Result> { connection::query( after, before,