Skip to content

Commit

Permalink
Update line-wrap to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cijiugechu authored Mar 23, 2024
1 parent a2cde06 commit a93a917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enable_unstable_features_that_may_break_with_minor_version_bumps = []
base64 = "0.21.0"
time = { version = "0.3.30", features = ["parsing", "formatting"] }
indexmap = "2.1.0"
line-wrap = "0.1.1"
line-wrap = "0.2.0"
quick_xml = { package = "quick-xml", version = "0.31.0" }
serde = { version = "1.0.2", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion src/stream/xml_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ pub(crate) fn base64_encode_plist(data: &[u8], indent: usize) -> String {
&mut output[line_ending.len()..],
base64_string_len,
LINE_LEN,
&line_wrap::SliceLineEnding::new(&line_ending),
&line_wrap::SliceLineEnding::new(&line_ending).expect("not empty"),
);

// Add the final line ending and indent
Expand Down

0 comments on commit a93a917

Please sign in to comment.