Skip to content

Commit

Permalink
Merge pull request #30 from getslash/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalloc authored Oct 4, 2024
2 parents 717ae6f + 5fd6baa commit 4e9a817
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["Rotem Yaari <[email protected]>"]
edition = "2018"
edition = "2021"
name = "mailboxer"
version = "2.0.1"

Expand Down
2 changes: 1 addition & 1 deletion src/pagination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct Pagination {

impl Pagination {
pub fn get_page(&self) -> usize {
max(1, self.page.unwrap_or(1) as usize)
max(1, self.page.unwrap_or(1))
}

pub fn limit(&self) -> i64 {
Expand Down
10 changes: 5 additions & 5 deletions src/smtp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ fn read_to_end_of_data(stream: &mut dyn BufRead) -> Result<String, Error> {
}
}

fn load_tls_identity() -> Identity {
Identity::from_pkcs12(include_bytes!("../tls_identity.pfx"), "mailboxer")
.expect("Unable to load identity")
}

#[cfg(test)]
mod tests {

Expand Down Expand Up @@ -365,8 +370,3 @@ mod tests {
);
}
}

fn load_tls_identity() -> Identity {
Identity::from_pkcs12(include_bytes!("../tls_identity.pfx"), "mailboxer")
.expect("Unable to load identity")
}

0 comments on commit 4e9a817

Please sign in to comment.