Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
run: cargo build --verbose --all-features
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --all-features
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ Supported character sets via the optional dependency [encoding_rs](https://crate

Licensed under either of

* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)

at your option.

Expand Down
10 changes: 5 additions & 5 deletions src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* SPDX-License-Identifier: Apache-2.0 OR MIT
*/

pub mod address;
pub mod body;
pub mod builder;
pub mod header;
pub mod message;
mod address;
mod body;
mod builder;
mod header;
mod message;
#[cfg(feature = "rkyv")]
pub mod rkyv;
6 changes: 3 additions & 3 deletions src/decoders/charsets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/

pub mod map;
pub mod multi_byte;
pub mod single_byte;
pub mod utf;
mod multi_byte;
mod single_byte;
mod utf;

pub type DecoderFnc = fn(&[u8]) -> String;

Expand Down
2 changes: 1 addition & 1 deletion src/decoders/encoded_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ mod tests {
//println!("Decoded '{}'", string);
assert_eq!(result, expected_result);
}
_ => panic!("Failed to decode '{}'", input),
_ => panic!("Failed to decode '{input}'"),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/decoders/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::parsers::MessageStream;

pub mod base64;
pub mod charsets;
pub mod encoded_word;
mod encoded_word;
pub mod hex;
pub mod html;
pub mod quoted_printable;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
#![doc = include_str!("../README.md")]
#![deny(rust_2018_idioms)]
#[forbid(unsafe_code)]
#![forbid(unsafe_code)]
pub mod core;
pub mod decoders;
pub mod mailbox;
Expand Down
12 changes: 6 additions & 6 deletions src/parsers/fields/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
*/

pub mod address;
pub mod content_type;
mod content_type;
pub mod date;
pub mod id;
pub mod list;
pub mod raw;
pub mod received;
mod id;
mod list;
mod raw;
mod received;
pub mod thread;
pub mod unstructured;
mod unstructured;

#[cfg(test)]
use serde::{Deserialize, Serialize};
Expand Down
3 changes: 1 addition & 2 deletions src/parsers/fields/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ mod tests {
.parse_raw()
.unwrap_text(),
expected,
"Failed for '{:?}'",
input
"Failed for '{input:?}'"
);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/parsers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use std::{iter::Peekable, ops::Range, slice::Iter};

pub mod fields;
pub mod header;
pub mod message;
pub mod mime;
mod header;
mod message;
mod mime;
pub mod preview;

pub struct MessageStream<'x> {
Expand Down