Skip to content

Commit a441333

Browse files
Fix clippy::needless_lifetimes lints
1 parent 99a66b6 commit a441333

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/class.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub struct JSClassBuilder<'a> {
139139
class_definition: sys::JSClassDefinition,
140140
}
141141

142-
impl<'a> JSClassBuilder<'a> {
142+
impl JSClassBuilder<'_> {
143143
/// Set a class constructor, called by [the `new` operator in JavaScript][new].
144144
///
145145
/// The easiest way to generate a [`JSObjectCallAsConstructorCallback`] is by using the

src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl PartialEq<String> for JSString {
8888
}
8989
}
9090

91-
impl<'s> PartialEq<JSString> for &'s str {
91+
impl PartialEq<JSString> for &str {
9292
fn eq(&self, other: &JSString) -> bool {
9393
let utf8 = CString::new(self.as_bytes()).unwrap();
9494
unsafe { sys::JSStringIsEqualToUTF8CString(other.raw, utf8.as_ptr()) }

0 commit comments

Comments
 (0)