Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapshot-tests: Delete :? hint without impact #537

Merged
merged 1 commit into from
Jul 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions firmware/qemu/src/bin/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ fn main() -> ! {
x: &'static str,
}

defmt::info!("{:?}", S { x: "hi" });
defmt::info!("{}", S { x: "hi" });
}

{
Expand All @@ -577,7 +577,7 @@ fn main() -> ! {
}

defmt::info!(
"{:?}",
"{}",
S {
x: PhantomData,
y: 42
Expand Down Expand Up @@ -621,24 +621,24 @@ fn main() -> ! {
defmt::info!("{} {=bool}", True, true);

// raw pointer
defmt::info!("{:?}", 0xAABBCCDD as *const u8);
defmt::info!("{:?}", 0xDDCCBBAA as *mut u8);
defmt::info!("{}", 0xAABBCCDD as *const u8);
defmt::info!("{}", 0xDDCCBBAA as *mut u8);

// core::ops
defmt::info!("{:?}", 1..2); // Range
defmt::info!("{:?}", 1..); // RangeFrom
defmt::info!("{:?}", ..2); // RangeTo
defmt::info!("{:?}", ..); // RangeFull
defmt::info!("{:?}", 1..=2); // RangeInclusive
defmt::info!("{:?}", ..=2); // RangeToInclusive
defmt::info!("{}", 1..2); // Range
defmt::info!("{}", 1..); // RangeFrom
defmt::info!("{}", ..2); // RangeTo
defmt::info!("{}", ..); // RangeFull
defmt::info!("{}", 1..=2); // RangeInclusive
defmt::info!("{}", ..=2); // RangeToInclusive

// core::iter
defmt::info!("{:?}", [0, 1, 2].iter().zip([2, 1, 0].iter())); // Zip
defmt::info!("{}", [0, 1, 2].iter().zip([2, 1, 0].iter())); // Zip

// core::slice
defmt::info!("{:?}", [0, 1, 2].chunks_exact(1)); // ChunksExact
defmt::info!("{:?}", [0, 1, 2].iter()); // ChunksExact
defmt::info!("{:?}", [0, 1, 2].windows(1)); // Windows
defmt::info!("{}", [0, 1, 2].chunks_exact(1)); // ChunksExact
defmt::info!("{}", [0, 1, 2].iter()); // ChunksExact
defmt::info!("{}", [0, 1, 2].windows(1)); // Windows

// core::num::NonZero*
defmt::info!("{}", num::NonZeroI8::new(1).unwrap());
Expand All @@ -655,7 +655,7 @@ fn main() -> ! {
defmt::info!("{}", num::NonZeroUsize::new(1).unwrap());

struct NotFormatType;
defmt::info!("{:?}", 0xCCBBAADD as *mut NotFormatType);
defmt::info!("{}", 0xCCBBAADD as *mut NotFormatType);

defmt::info!("QEMU test finished!");

Expand Down