Skip to content

Commit 8c848b9

Browse files
authored
docs: remove GATs TODOs, they do not work that way
1 parent 28743a4 commit 8c848b9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

hal/src/lptim/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,6 @@ impl<P> LpTim1Trg<P> {
824824
}
825825
}
826826

827-
// TODO: move to LpTim trait when GATs are stablized
828827
impl LpTim1 {
829828
/// Setup a new pin trigger.
830829
///
@@ -884,7 +883,6 @@ impl<P> LpTim2Trg<P> {
884883
}
885884
}
886885

887-
// TODO: move to LpTim trait when GATs are stablized
888886
impl LpTim2 {
889887
/// Setup a new pin trigger.
890888
///
@@ -944,7 +942,6 @@ impl LpTim3Trg {
944942
}
945943
}
946944

947-
// TODO: move to LpTim trait when GATs are stablized
948945
impl LpTim3 {
949946
/// Setup a new pin trigger.
950947
///
@@ -1057,7 +1054,6 @@ impl<P> LpTim1OutPin<P> {
10571054
}
10581055
}
10591056

1060-
// TODO: move to LpTim trait when GATs are stablized
10611057
impl LpTim1 {
10621058
/// Setup a new output pin.
10631059
#[inline]
@@ -1093,7 +1089,6 @@ impl<P> LpTim2OutPin<P> {
10931089
}
10941090
}
10951091

1096-
// TODO: move to LpTim trait when GATs are stablized
10971092
impl LpTim2 {
10981093
/// Setup a new output pin.
10991094
#[inline]
@@ -1129,7 +1124,6 @@ impl LpTim3OutPin {
11291124
}
11301125
}
11311126

1132-
// TODO: move to LpTim trait when GATs are stablized
11331127
impl LpTim3 {
11341128
/// Setup a new output pin.
11351129
#[inline]

hal/src/spi.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! # Constructors
66
//!
77
//! There was a minor cartesian explosion when writing this module.
8-
//! This will get a lot nicer when [GATs are stabilized].
98
//!
109
//! | Function | Bus | plex | DMA |
1110
//! |-------------------------------------|-----|--------------|-----|
@@ -18,7 +17,6 @@
1817
//! | [`new_spi2_mosi_simplex`] | 2 | MOSI-simplex | No |
1918
//! | [`new_spi2_mosi_simplex_dma`] | 2 | MOSI-simplex | Yes |
2019
//!
21-
//! [GATs are stabilized]: https://blog.rust-lang.org/2021/08/03/GATs-stabilization-push.html
2220
//! [`embedded-hal`]: https://docs.rs/embedded-hal/latest/embedded_hal/
2321
//! [`new_spi1_full_duplex_dma`]: Spi::new_spi1_full_duplex_dma
2422
//! [`new_spi1_full_duplex`]: Spi::new_spi1_full_duplex
@@ -1040,8 +1038,8 @@ macro_rules! impl_new_miso_simplex_dma {
10401038
paste::paste! {
10411039
impl<SCK, MISO, MISODMA> Spi<[<SPI $n>], SCK, (MISO, MISODMA), NoMosi>
10421040
where
1043-
SCK: [<Spi $n Sck>],
1044-
MISO: [<Spi $n Miso>],
1041+
SCK: [<Spi $n Sck>],
1042+
MISO: [<Spi $n Miso>],
10451043
MISODMA: DmaCh,
10461044
{
10471045
/// Create a new MISO-simplex slave with DMA transfers.

0 commit comments

Comments
 (0)