diff options
author | 2023-09-19 01:31:10 -0400 | |
---|---|---|
committer | 2023-09-19 01:32:56 -0400 | |
commit | 3d6b9637c3b1c9f3c654a3ecef7a247cfd6edef3 (patch) | |
tree | 70ffb135b91c824caa37a0fe4742179088e5a638 /wgpu/src/image | |
parent | 4613eb26cba3ded83f25ebdefd01c983c79a9d59 (diff) | |
download | iced-3d6b9637c3b1c9f3c654a3ecef7a247cfd6edef3.tar.gz iced-3d6b9637c3b1c9f3c654a3ecef7a247cfd6edef3.tar.bz2 iced-3d6b9637c3b1c9f3c654a3ecef7a247cfd6edef3.zip |
Chore: Inline format args for ease of reading
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
Diffstat (limited to 'wgpu/src/image')
-rw-r--r-- | wgpu/src/image/atlas.rs | 8 | ||||
-rw-r--r-- | wgpu/src/image/vector.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/wgpu/src/image/atlas.rs b/wgpu/src/image/atlas.rs index e3de1290..1253496b 100644 --- a/wgpu/src/image/atlas.rs +++ b/wgpu/src/image/atlas.rs @@ -86,7 +86,7 @@ impl Atlas { entry }; - log::info!("Allocated atlas entry: {:?}", entry); + log::info!("Allocated atlas entry: {entry:?}"); // It is a webgpu requirement that: // BufferCopyView.layout.bytes_per_row % wgpu::COPY_BYTES_PER_ROW_ALIGNMENT == 0 @@ -139,13 +139,13 @@ impl Atlas { } } - log::info!("Current atlas: {:?}", self); + log::info!("Current atlas: {self:?}"); Some(entry) } pub fn remove(&mut self, entry: &Entry) { - log::info!("Removing atlas entry: {:?}", entry); + log::info!("Removing atlas entry: {entry:?}"); match entry { Entry::Contiguous(allocation) => { @@ -258,7 +258,7 @@ impl Atlas { } fn deallocate(&mut self, allocation: &Allocation) { - log::info!("Deallocating atlas: {:?}", allocation); + log::info!("Deallocating atlas: {allocation:?}"); match allocation { Allocation::Full { layer } => { diff --git a/wgpu/src/image/vector.rs b/wgpu/src/image/vector.rs index 2c03d36b..6582bb82 100644 --- a/wgpu/src/image/vector.rs +++ b/wgpu/src/image/vector.rs @@ -152,7 +152,7 @@ impl Cache { let allocation = atlas.upload(device, encoder, width, height, &rgba)?; - log::debug!("allocating {} {}x{}", id, width, height); + log::debug!("allocating {id} {width}x{height}"); let _ = self.svg_hits.insert(id); let _ = self.rasterized_hits.insert(key); |