Fix variable name (#2142)

This commit is contained in:
Joseph T. Lyons 2020-07-08 19:55:01 -04:00 committed by GitHub
parent ed6f337a48
commit 1e62a8fb6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,8 +42,8 @@ async fn from_vcf(
let input_string = input.collect_string(tag.clone()).await?.item;
let input_bytes = input_string.into_bytes();
let buf_reader = std::io::Cursor::new(input_bytes);
let parser = ical::VcardParser::new(buf_reader);
let cursor = std::io::Cursor::new(input_bytes);
let parser = ical::VcardParser::new(cursor);
let iter = parser.map(move |contact| match contact {
Ok(c) => ReturnSuccess::value(contact_to_value(c, tag.clone())),