Whitespace fixes
parent
a6d557d694
commit
6f994feb13
|
@ -356,13 +356,11 @@ impl Attachment {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn interpret_format_flowed(_t: &str) -> String {
|
||||
//let mut n = String::with_capacity(t.len());
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
|
||||
fn decode_rfc822(_raw: &[u8]) -> Attachment {
|
||||
let builder = AttachmentBuilder::new(b"");
|
||||
builder.build()
|
||||
|
@ -384,7 +382,6 @@ fn decode_rfc822(_raw: &[u8]) -> Attachment {
|
|||
|
||||
type Filter = Box<Fn(&Attachment, &mut Vec<u8>) -> ()>;
|
||||
|
||||
|
||||
fn decode_rec_helper(a: &Attachment, filter: &Option<Filter>) -> Vec<u8> {
|
||||
let mut ret = match a.content_type {
|
||||
ContentType::Unsupported { .. } => Vec::new(),
|
||||
|
@ -418,12 +415,10 @@ fn decode_rec_helper(a: &Attachment, filter: &Option<Filter>) -> Vec<u8> {
|
|||
ret
|
||||
}
|
||||
|
||||
|
||||
pub fn decode_rec(a: &Attachment, filter: Option<Filter>) -> Vec<u8> {
|
||||
decode_rec_helper(a, &filter)
|
||||
}
|
||||
|
||||
|
||||
fn decode_helper(a: &Attachment, filter: &Option<Filter>) -> Vec<u8> {
|
||||
let charset = match a.content_type {
|
||||
ContentType::Text { charset: c, .. } => c,
|
||||
|
@ -459,7 +454,6 @@ fn decode_helper(a: &Attachment, filter: &Option<Filter>) -> Vec<u8> {
|
|||
ret
|
||||
}
|
||||
|
||||
|
||||
pub fn decode(a: &Attachment, filter: Option<Filter>) -> Vec<u8> {
|
||||
decode_helper(a, &filter)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue