Skip to content

lib: update embedded-hal into 1.0.0 #52

lib: update embedded-hal into 1.0.0

lib: update embedded-hal into 1.0.0 #52

GitHub Actions / clippy succeeded Jan 10, 2024 in 0s

clippy

48 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 48
Note 0
Help 0

Versions

  • rustc 1.77.0-nightly (190f4c961 2024-01-09)
  • cargo 1.77.0-nightly (2ce45605d 2024-01-04)
  • clippy 0.1.77 (190f4c9 2024-01-09)

Annotations

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |

Check warning on line 107 in src/fpioa.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused borrow that must be used

warning: unused borrow that must be used
   --> src/fpioa.rs:105:22
    |
105 |               unsafe { &(*FPIOA::ptr()).io[$id].write(|w|
    |  ______________________^
106 | |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 | |             ) };
    | |_____________^ the borrow produces a value
...
120 | / def_io_pin! {
121 | |     Io0: (0, io0, JTAG_TCLK);
122 | |     Io1: (1, io1, JTAG_TDI);
123 | |     Io2: (2, io2, JTAG_TMS);
...   |
168 | |     Io47: (47, io47, GPIOHS31);
169 | | }
    | |_- in this macro invocation
    |
    = note: this warning originates in the macro `def_io_pin` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use `let _ = ...` to ignore the resulting value
    |
105 ~             unsafe { let _ = &(*FPIOA::ptr()).io[$id].write(|w|
106 |                 w.bits(FUNCTION_DEFAULTS[F::INDEX as usize])
107 ~             ); };
    |