Skip to content

Commit 154cf31

Browse files
authored
Removed references to type Error aliases in docs (#370)
1 parent eeb849b commit 154cf31

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lambda-http/src/ext.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ impl Error for PayloadError {
6666
/// as well as `{"x":1, "y":2}` respectively.
6767
///
6868
/// ```rust,no_run
69-
/// use lambda_http::{handler, lambda_runtime::{self, Context}, Body, IntoResponse, Request, Response, RequestExt};
69+
/// use lambda_http::{handler, lambda_runtime::{self, Error, Context}, Body, IntoResponse, Request, Response, RequestExt};
7070
/// use serde::Deserialize;
7171
///
72-
/// type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
73-
///
7472
/// #[derive(Debug,Deserialize,Default)]
7573
/// struct Args {
7674
/// #[serde(default)]

lambda-runtime/src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,9 @@ where
281281
///
282282
/// # Example
283283
/// ```no_run
284-
/// use lambda_runtime::{handler_fn, Context};
284+
/// use lambda_runtime::{Error, handler_fn, Context};
285285
/// use serde_json::Value;
286286
///
287-
/// type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
288-
///
289287
/// #[tokio::main]
290288
/// async fn main() -> Result<(), Error> {
291289
/// let func = handler_fn(func);

0 commit comments

Comments
 (0)