Skip to content

Commit

Permalink
fix release mode compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Mar 9, 2023
1 parent 92ccd79 commit 3394d00
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/re_renderer/src/wgpu_resources/texture_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ impl TextureDesc {

/// Copies the desc but adds a string to the label.
pub fn with_label_push(&self, append_this: &str) -> Self {
let copy = self.clone();
Self {
label: copy.label.push_str(append_this),
..copy
}
let mut copy = self.clone();
copy.label = copy.label.push_str(append_this);
copy
}
}

Expand Down

0 comments on commit 3394d00

Please sign in to comment.