1
Fork 0

Remove useless drop of copy type

This commit is contained in:
Urgau 2023-03-27 19:29:50 +02:00
parent d36e390d81
commit 7dab6094bb
4 changed files with 5 additions and 7 deletions

View file

@ -562,15 +562,13 @@ pub(crate) mod printf {
}
if let Type = state {
drop(c);
type_ = at.slice_between(next).unwrap();
// Don't use `move_to!` here, as we *can* be at the end of the input.
at = next;
}
drop(c);
drop(next);
let _ = c; // to avoid never used value
end = at;
let position = InnerSpan::new(start.at, end.at);