Skip to content

Commit c568cf6

Browse files
committed
fmt: format with dprint
1 parent 77328a4 commit c568cf6

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

src/functional/generics-type-classes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,21 +260,21 @@ It is also used by several popular crates to allow API flexibility:
260260
concept, and a slightly different technique. [^6]
261261

262262
[^1]: See:
263-
[impl From\<CString\> for Vec\<u8\>](https://doc.rust-lang.org/1.59.0/src/std/ffi/c_str.rs.html#803-811)
263+
[impl From\<CString\> for Vec\<u8\>](https://doc.rust-lang.org/1.59.0/src/std/ffi/c_str.rs.html#803-811)
264264

265265
[^2]: See:
266-
[impl\<T: Ord\> FromIterator\<T\> for BinaryHeap\<T\>](https://web.archive.org/web/20201030132806/https://doc.rust-lang.org/stable/src/alloc/collections/binary_heap.rs.html#1330-1335)
266+
[impl\<T: Ord\> FromIterator\<T\> for BinaryHeap\<T\>](https://web.archive.org/web/20201030132806/https://doc.rust-lang.org/stable/src/alloc/collections/binary_heap.rs.html#1330-1335)
267267

268268
[^3]: See:
269-
[impl\<'\_\> ToString for Cow\<'\_, str>](https://doc.rust-lang.org/stable/src/alloc/string.rs.html#2235-2240)
269+
[impl\<'\_\> ToString for Cow\<'\_, str>](https://doc.rust-lang.org/stable/src/alloc/string.rs.html#2235-2240)
270270

271271
[^4]: Example:
272-
[https://docs.rs/stm32f30x-hal/0.1.0/stm32f30x_hal/gpio/gpioa/struct.PA0.html](https://docs.rs/stm32f30x-hal/0.1.0/stm32f30x_hal/gpio/gpioa/struct.PA0.html)
272+
[https://docs.rs/stm32f30x-hal/0.1.0/stm32f30x_hal/gpio/gpioa/struct.PA0.html](https://docs.rs/stm32f30x-hal/0.1.0/stm32f30x_hal/gpio/gpioa/struct.PA0.html)
273273

274274
[^5]: See:
275-
[https://docs.rs/hyper/0.14.5/hyper/client/struct.Client.html](https://docs.rs/hyper/0.14.5/hyper/client/struct.Client.html)
275+
[https://docs.rs/hyper/0.14.5/hyper/client/struct.Client.html](https://docs.rs/hyper/0.14.5/hyper/client/struct.Client.html)
276276

277277
[^6]: See:
278-
[The Case for the Type State Pattern](https://web.archive.org/web/20210325065112/https://www.novatec-gmbh.de/en/blog/the-case-for-the-typestate-pattern-the-typestate-pattern-itself/)
279-
and
280-
[Rusty Typestate Series (an extensive thesis)](https://web.archive.org/web/20210328164854/https://rustype.github.io/notes/notes/rust-typestate-series/rust-typestate-index)
278+
[The Case for the Type State Pattern](https://web.archive.org/web/20210325065112/https://www.novatec-gmbh.de/en/blog/the-case-for-the-typestate-pattern-the-typestate-pattern-itself/)
279+
and
280+
[Rusty Typestate Series (an extensive thesis)](https://web.archive.org/web/20210328164854/https://rustype.github.io/notes/notes/rust-typestate-series/rust-typestate-index)

src/intro.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ chapters:
4545
when coding. However, while design patterns give us benefits, anti-patterns
4646
create more problems.
4747

48-
[^1]: <https://www.infoq.com/podcasts/software-architecture-hard-parts/> ([Archive](https://web.archive.org/web/20240124025806/https://www.infoq.com/podcasts/software-architecture-hard-parts/)]
48+
[^1]: <https://www.infoq.com/podcasts/software-architecture-hard-parts/>
49+
([Archive](https://web.archive.org/web/20240124025806/https://www.infoq.com/podcasts/software-architecture-hard-parts/)]

src/patterns/ffi/wrappers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ optimizations that C code cannot attain. Being denied access to certain
153153
shortcuts is the price Rust programmers need to pay.
154154

155155
[^1]: For the C programmers out there scratching their heads, the iterator need
156-
not be read *during* this code to cause the UB. The exclusivity rule also
157-
enables compiler optimizations which may cause inconsistent observations by the
158-
iterator's shared reference (e.g. stack spills or reordering instructions for
159-
efficiency). These observations may happen *any time after* the mutable
160-
reference is created.
156+
not be read *during* this code to cause the UB. The exclusivity rule also
157+
enables compiler optimizations which may cause inconsistent observations by
158+
the iterator's shared reference (e.g. stack spills or reordering
159+
instructions for efficiency). These observations may happen *any time after*
160+
the mutable reference is created.

0 commit comments

Comments
 (0)