Fix clippy::needless_lifetimes lints (#717)
* Fix `clippy::needless_lifetimes` lints * Fix `clippy::doc_markdown` lints
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user