Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bartlett committed Jan 29, 2024
1 parent d9c2dd8 commit 46e4b6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -926,12 +926,15 @@ impl<'de> Deserializer<'de> {
/// Creates a deserializer from a Tape.
///
/// # Safety
/// The tape is not checked for correctness. The deserializer is only
/// guaranteed to operate correctly if the tape came from a previous
/// The tape is not checked for correctness. The deserializer is only
/// guaranteed to operate correctly if the tape came from a previous
/// Deserializer or from the [ and has not been modified.
#[must_use]
pub unsafe fn from_tape(tape: Tape<'de>) -> Self {
Self { tape:tape.0, idx: 0 }
Self {
tape: tape.0,
idx: 0,
}
}

#[cfg(feature = "serde_impl")]
Expand Down

0 comments on commit 46e4b6b

Please sign in to comment.