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

Commit

Permalink
Fix library reference in binary crate
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3ck committed Nov 21, 2022
1 parent 18d9c29 commit 073a64c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ name = "bootstrap"
path = "src/main.rs"

[lib]
name = "config"
path = "src/config.rs"
name = "lib"
path = "src/lib.rs"

[profile.release]
panic = "abort"
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#![forbid(unsafe_code)]
#![allow(clippy::derive_partial_eq_without_eq)]

pub mod config;

use config::PrivatEmailConfig;
use lambda_runtime::{Error, LambdaEvent};
use mailparse::parse_mail;
Expand Down Expand Up @@ -137,7 +139,7 @@ pub struct Verdict {

/// PrivatEmail_Handler: processes incoming messages from SNS
/// and forwards to the appropriate recipient email
pub(crate) async fn privatemail_handler(
pub async fn privatemail_handler(
lambda_event: LambdaEvent<Value>,
) -> Result<LambdaResponse, Error> {
let (event, ctx) = lambda_event.into_parts();
Expand Down
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
//! Authors:
//! - Nyah Check <[email protected]>
pub mod lib;

use crate::lib::privatemail_handler;
use lib::privatemail_handler;
use lambda_runtime::{service_fn, Error};

#[tokio::main]
Expand Down

0 comments on commit 073a64c

Please sign in to comment.