clippy:Fix clippy problems in components/scripts/binding (#31893)

* constants have by default a static lifetime

* constants have by default a static lifetime

* unneeded unit expression

* unneeded unit expression

* Box of default value

* casting raw pointers

* casting raw pointers
This commit is contained in:
Rosemary Ajayi 2024-03-27 12:32:04 +00:00 committed by GitHub
parent 1f31609952
commit bb7778774d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 16 deletions

View file

@ -124,7 +124,7 @@ where
{
pub fn default() -> HeapBufferSource<T> {
HeapBufferSource {
buffer_source: BufferSource::Default(Box::new(Heap::default())),
buffer_source: BufferSource::Default(Box::default()),
phantom: PhantomData,
}
}