mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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>
This commit is contained in:
parent
380348e4df
commit
6be99241c6
11 changed files with 19 additions and 34 deletions
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue