mit-commit 3.1.5

For building commit linters. This makes it eas.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{Body, Comment, Fragment};

#[test]
fn can_convert_body_into_a_fragment() {
    let body: Body<'_> = "A Body".into();
    let fragment: Fragment<'_> = body.clone().into();

    assert_eq!(fragment, Fragment::Body(body));
}

#[test]
fn can_convert_comment_into_a_fragment() {
    let comment: Comment<'_> = "A Comment".into();
    let fragment: Fragment<'_> = comment.clone().into();

    assert_eq!(fragment, Fragment::Comment(comment));
}