Fix clippy::needless_lifetimes lints (#717)

* Fix `clippy::needless_lifetimes` lints

* Fix `clippy::doc_markdown` lints
This commit is contained in:
Bruce Mitchener
2025-01-08 12:20:49 +07:00
committed by GitHub
parent 94373819a7
commit f23baea603
5 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ bitflags! {
///
/// These constants are the virtual keycodes defined originally in
/// Inside Mac Volume V, pg. V-191. They identify physical keys on a
/// keyboard. The struct contains the values of the ANSIKeyCode,
/// KeyCode, ISOKeyCode and JISKeyCode of the original Carbon headers.
/// keyboard. The struct contains the values of the `ANSIKeyCode`,
/// `KeyCode`, `ISOKeyCode` and `JISKeyCode` of the original Carbon headers.
///
/// Those constants with "ANSI" in the name are labeled
/// according to the key position on an ANSI-standard US keyboard.
+2 -2
View File
@@ -80,7 +80,7 @@ pub struct CGPathElementRef<'a> {
phantom: PhantomData<&'a CGPathElement>,
}
impl<'a> CGPathElementRef<'a> {
impl CGPathElementRef<'_> {
fn new<'b>(element: *const CGPathElement) -> CGPathElementRef<'b> {
CGPathElementRef {
element,
@@ -89,7 +89,7 @@ impl<'a> CGPathElementRef<'a> {
}
}
impl<'a> Deref for CGPathElementRef<'a> {
impl Deref for CGPathElementRef<'_> {
type Target = CGPathElement;
fn deref(&self) -> &CGPathElement {
unsafe { &*self.element }