chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
server: boundary_finder plumbing
[hippotat.git]
/
src
/
multipart.rs
diff --git
a/src/multipart.rs
b/src/multipart.rs
index 9f3fca9fade6b2533c35161f6e704e7fdcd2f35f..b858039c73e782c6993442548e70bf08c9f9be99 100644
(file)
--- a/
src/multipart.rs
+++ b/
src/multipart.rs
@@
-15,6
+15,8
@@
pub struct Component<'b> {
#[allow(non_camel_case_types)]
pub enum PartName { m, d, Other }
+pub type BoundaryFinder = memchr::memmem::Finder<'static>;
+
#[throws(AE)]
pub fn process_component<'b>(warnings: &mut Warnings,
after_leader: &'b [u8], expected: PartName)