aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/bluetoothuuid.rs1
-rw-r--r--components/script/dom/css.rs1
-rw-r--r--components/script/dom/gpu.rs1
-rw-r--r--components/script/dom/gpucanvascontext.rs2
-rw-r--r--components/script/dom/url.rs1
-rw-r--r--components/script/dom/xmlhttprequest.rs1
-rw-r--r--components/webgpu/swapchain.rs4
7 files changed, 8 insertions, 3 deletions
diff --git a/components/script/dom/bluetoothuuid.rs b/components/script/dom/bluetoothuuid.rs
index 2be73830f3b..b3265379526 100644
--- a/components/script/dom/bluetoothuuid.rs
+++ b/components/script/dom/bluetoothuuid.rs
@@ -12,6 +12,7 @@ use crate::dom::bindings::reflector::Reflector;
use crate::dom::bindings::str::DOMString;
use crate::dom::window::Window;
+#[allow(clippy::upper_case_acronyms)]
pub type UUID = DOMString;
pub type BluetoothServiceUUID = StringOrUnsignedLong;
pub type BluetoothCharacteristicUUID = StringOrUnsignedLong;
diff --git a/components/script/dom/css.rs b/components/script/dom/css.rs
index e4f93979c5b..23d1037e055 100644
--- a/components/script/dom/css.rs
+++ b/components/script/dom/css.rs
@@ -19,6 +19,7 @@ use crate::dom::window::Window;
use crate::dom::worklet::Worklet;
#[dom_struct]
+#[allow(clippy::upper_case_acronyms)]
pub struct CSS {
reflector_: Reflector,
}
diff --git a/components/script/dom/gpu.rs b/components/script/dom/gpu.rs
index 27b2c8908e9..5d688478491 100644
--- a/components/script/dom/gpu.rs
+++ b/components/script/dom/gpu.rs
@@ -28,6 +28,7 @@ use crate::realms::InRealm;
use crate::task_source::{TaskSource, TaskSourceName};
#[dom_struct]
+#[allow(clippy::upper_case_acronyms)]
pub struct GPU {
reflector_: Reflector,
}
diff --git a/components/script/dom/gpucanvascontext.rs b/components/script/dom/gpucanvascontext.rs
index cc8c5ca3e25..fbf07f74c23 100644
--- a/components/script/dom/gpucanvascontext.rs
+++ b/components/script/dom/gpucanvascontext.rs
@@ -398,7 +398,7 @@ impl GPUCanvasContextMethods for GPUCanvasContext {
} else {
// Step 3&4
self.replace_drawing_buffer();
- let current_texture = configuration.device.CreateTexture(&texture_descriptor)?;
+ let current_texture = configuration.device.CreateTexture(texture_descriptor)?;
self.current_texture.set(Some(&current_texture));
current_texture
};
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs
index d0b832ad655..7896c650991 100644
--- a/components/script/dom/url.rs
+++ b/components/script/dom/url.rs
@@ -27,6 +27,7 @@ use crate::script_runtime::CanGc;
/// <https://url.spec.whatwg.org/#url>
#[dom_struct]
+#[allow(clippy::upper_case_acronyms)]
pub struct URL {
reflector_: Reflector,
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 59a207d8ab6..72be70361f8 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -1678,6 +1678,7 @@ fn serialize_document(doc: &Document) -> Fallible<DOMString> {
pub fn is_field_value(slice: &[u8]) -> bool {
// Classifications of characters necessary for the [CRLF] (SP|HT) rule
#[derive(PartialEq)]
+ #[allow(clippy::upper_case_acronyms)]
enum PreviousCharacter {
Other,
CR,
diff --git a/components/webgpu/swapchain.rs b/components/webgpu/swapchain.rs
index bbbe6f9aa1e..ac9c7603a95 100644
--- a/components/webgpu/swapchain.rs
+++ b/components/webgpu/swapchain.rs
@@ -141,9 +141,9 @@ pub struct WebGPUImageDescriptor(pub ImageDescriptor);
impl WebGPUImageDescriptor {
fn new(format: ImageFormat, size: DeviceIntSize, is_opaque: bool) -> Self {
- let stride = (((size.width * format.bytes_per_pixel()) |
+ let stride = ((size.width * format.bytes_per_pixel()) |
(wgt::COPY_BYTES_PER_ROW_ALIGNMENT as i32 - 1)) +
- 1) as i32;
+ 1;
Self(ImageDescriptor {
format,
size,