Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3ck committed Nov 21, 2022
1 parent 073a64c commit 5c0dd2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
7 changes: 1 addition & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
//! ...
//! }
//! ```
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
//! Authors:
//! - Nyah Check <[email protected]>
use lib::privatemail_handler;
use lambda_runtime::{service_fn, Error};
use lib::privatemail_handler;

#[tokio::main]
async fn main() -> Result<(), Error> {
Expand Down

0 comments on commit 5c0dd2c

Please sign in to comment.