aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_validations/tex_image_2d.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-08-14 09:00:16 +0200
committerGitHub <noreply@github.com>2024-08-14 07:00:16 +0000
commit6be99241c64bb5c8c4df6be3c37a5f53829cd499 (patch)
treefe70182644f16a5b0d14bc79c554d29c542c9e90 /components/script/dom/webgl_validations/tex_image_2d.rs
parent380348e4df8211838680dedb76c117f101ee9bba (diff)
downloadservo-6be99241c64bb5c8c4df6be3c37a5f53829cd499.tar.gz
servo-6be99241c64bb5c8c4df6be3c37a5f53829cd499.zip
Fix warnings after latest rust upgrade (#33043)
This fixes various unused code warnings after the recent rust upgrade. Some of the dead code is maintained, as it is quite likely that it will be used in future changes. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/webgl_validations/tex_image_2d.rs')
-rw-r--r--components/script/dom/webgl_validations/tex_image_2d.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webgl_validations/tex_image_2d.rs b/components/script/dom/webgl_validations/tex_image_2d.rs
index 96afb62820e..ecd0a167ce6 100644
--- a/components/script/dom/webgl_validations/tex_image_2d.rs
+++ b/components/script/dom/webgl_validations/tex_image_2d.rs
@@ -59,8 +59,8 @@ impl fmt::Display for TexImageValidationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
use self::TexImageValidationError::*;
let description = match *self {
- InvalidTextureTarget(_) => "Invalid texture target",
- TextureTargetNotBound(_) => "Texture was not bound",
+ InvalidTextureTarget(texture_id) => &format!("Invalid texture target ({texture_id})"),
+ TextureTargetNotBound(texture_id) => &format!("Texture was not bound {texture_id}"),
InvalidCubicTextureDimensions => {
"Invalid dimensions were given for a cubic texture target"
},