summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse/parse.rs')
-rw-r--r--openpgp/src/parse/parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs
index 4776ba0a..a06a710c 100644
--- a/openpgp/src/parse/parse.rs
+++ b/openpgp/src/parse/parse.rs
@@ -1715,7 +1715,7 @@ impl Literal {
let mut literal = Literal::new(format.into());
if let Some(filename) = filename {
- literal.set_filename_from_bytes(&filename)
+ literal.set_filename(&filename)
.expect("length checked above");
}
literal.set_date(