From 1cf7a1052b124ed6ab9c5c2eac03a4e579900e29 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 16 Nov 2017 20:44:23 +0100 Subject: Make literal_body generic. --- src/openpgp/parse/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/openpgp/parse/parse.rs b/src/openpgp/parse/parse.rs index 99ce5468..b41cb028 100644 --- a/src/openpgp/parse/parse.rs +++ b/src/openpgp/parse/parse.rs @@ -244,8 +244,8 @@ pub fn userid_body(bio: &mut T) -> Result Result { +pub fn literal_body(mut bio: &mut R) + -> Result { // When using bio, we have to do some acrobatics, because // calling bio.data() creates a mutable borrow on bio. Since // there can only be one such borrow at a time, we have to put it -- cgit v1.2.3