From 5c0dd2c4601eab69ccc1bbc466be78867dc6ed5c Mon Sep 17 00:00:00 2001 From: Nyah Check Date: Sun, 20 Nov 2022 20:40:29 -0800 Subject: [PATCH] Fix doc tests --- README.md | 4 ++-- src/lib.rs | 7 +------ src/main.rs | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cab7363..616e457 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # privatemail -[![CI Build](https://github.com/ch3ck/privatemail/actions/workflows/ci.yml/badge.svg)](https://github.com/ch3ck/privatemail/actions/workflows/ci.yml) -[![Release new binaries](https://github.com/ch3ck/privatemail/actions/workflows/release.yml/badge.svg?branch=v0.2.2)](https://github.com/ch3ck/privatemail/actions/workflows/release.yml) +[![Build & Run Tests](https://github.com/ch3ck/privatemail/actions/workflows/ci.yml/badge.svg)](https://github.com/ch3ck/privatemail/actions/workflows/ci.yml) +[![Release new binaries](https://github.com/ch3ck/privatemail/actions/workflows/release.yml/badge.svg?branch=v0.2.3)](https://github.com/ch3ck/privatemail/actions/workflows/release.yml) [![Security audit](https://github.com/ch3ck/privatemail/actions/workflows/audit.yml/badge.svg)](https://github.com/ch3ck/privatemail/actions/workflows/audit.yml) [![forthebadge](https://forthebadge.com/images/badges/contains-technical-debt.svg)](https://crates.io/crates/privatemail) diff --git a/src/lib.rs b/src/lib.rs index 7442d83..99be4e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,18 +12,13 @@ //! Example: //! //! ``` -//! use privatemail::PrivatEmailConfig; +//! use crate::lib::config::PrivatEmailConfig; //! use serde::{Deserialize, Serialize}; //! //! async fn privatemail_handler() { //! // Initialize PrivatEmailConfig object. //! let email_config = PrivatEmailConfig::default(); //! -//! // Get email recipient and process incoming mail -//! ... -//! -//! // Forward to recipent -//! ... //! } //! ``` diff --git a/src/main.rs b/src/main.rs index 2adef41..19f4ba5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,8 +10,8 @@ //! Authors: //! - Nyah Check -use lib::privatemail_handler; use lambda_runtime::{service_fn, Error}; +use lib::privatemail_handler; #[tokio::main] async fn main() -> Result<(), Error> {