Skip to content

Commit

Permalink
simplify read_string signature again
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernie committed Mar 17, 2017
1 parent 3102c48 commit 019a7b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/xlsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,7 @@ fn get_row_column(range: &[u8]) -> Result<(u32, u32)> {
}

/// attempts to read either a simple or richtext string
fn read_string<C: AsRef<[u8]>>(xml: &mut Reader<BufReader<ZipFile>>,
closing: C)
-> Result<Option<String>> {
fn read_string(xml: &mut Reader<BufReader<ZipFile>>, closing: &[u8]) -> Result<Option<String>> {
let closing = closing.as_ref();
let mut buf = Vec::new();
let mut rich_buffer: Option<String> = None;
Expand Down

0 comments on commit 019a7b9

Please sign in to comment.