We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clippy::needless_lifetimes
1 parent 99a66b6 commit a441333Copy full SHA for a441333
2 files changed
src/class.rs
@@ -139,7 +139,7 @@ pub struct JSClassBuilder<'a> {
139
class_definition: sys::JSClassDefinition,
140
}
141
142
-impl<'a> JSClassBuilder<'a> {
+impl JSClassBuilder<'_> {
143
/// Set a class constructor, called by [the `new` operator in JavaScript][new].
144
///
145
/// The easiest way to generate a [`JSObjectCallAsConstructorCallback`] is by using the
src/string.rs
@@ -88,7 +88,7 @@ impl PartialEq<String> for JSString {
88
89
90
91
-impl<'s> PartialEq<JSString> for &'s str {
+impl PartialEq<JSString> for &str {
92
fn eq(&self, other: &JSString) -> bool {
93
let utf8 = CString::new(self.as_bytes()).unwrap();
94
unsafe { sys::JSStringIsEqualToUTF8CString(other.raw, utf8.as_ptr()) }
0 commit comments