Skip to content

Commit c38077f

Browse files
authoredMar 11, 2024
Merge pull request #470 from nodir-t/master
Remove `Implementing the Default trait` book section
2 parents 4a13020 + eeac4f8 commit c38077f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎book/src/tutorial/db.md

-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ If you want to permit accessing your database from multiple threads at once, the
3535
{{#include ../../../examples-2022/calc/src/db.rs:par_db_impl}}
3636
```
3737

38-
## Implementing the `Default` trait
39-
40-
It's not required, but implementing the `Default` trait is often a convenient way to let users instantiate your database:
41-
42-
```rust
43-
{{#include ../../../examples-2022/calc/src/db.rs:default_impl}}
44-
```
45-
4638
## Implementing the traits for each jar
4739

4840
The `Database` struct also needs to implement the [database traits for each jar](./jar.md#database-trait-for-the-jar).

0 commit comments

Comments
 (0)