Skip to content

Commit

Permalink
Merge #537
Browse files Browse the repository at this point in the history
537: `snapshot-tests`: Delete `:?` hint without impact r=Urhengulas a=Urhengulas

bors r+

Co-authored-by: Johann Hemmann <johann.hemmann@code.berlin>
  • Loading branch information
bors[bot] and Urhengulas authored Jul 16, 2021
2 parents cfb71f2 + e60c680 commit a076918
Showing 1 changed file with 15 additions and 15 deletions.
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

0 comments on commit a076918

Please sign in to comment.