From eeac4f8d33d4c44048d0c686cad087670e3a5c3e Mon Sep 17 00:00:00 2001 From: Nodir Turakulov <86609653+nodir-t@users.noreply.github.com> Date: Mon, 8 Jan 2024 18:25:30 -0800 Subject: [PATCH] Implementing the Default trait --- book/src/tutorial/db.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/book/src/tutorial/db.md b/book/src/tutorial/db.md index fbab91a4..c008b17b 100644 --- a/book/src/tutorial/db.md +++ b/book/src/tutorial/db.md @@ -35,14 +35,6 @@ If you want to permit accessing your database from multiple threads at once, the {{#include ../../../examples-2022/calc/src/db.rs:par_db_impl}} ``` -## Implementing the `Default` trait - -It's not required, but implementing the `Default` trait is often a convenient way to let users instantiate your database: - -```rust -{{#include ../../../examples-2022/calc/src/db.rs:default_impl}} -``` - ## Implementing the traits for each jar The `Database` struct also needs to implement the [database traits for each jar](./jar.md#database-trait-for-the-jar).