This commit is contained in:
Wojciech Kozlowski 2023-04-27 18:47:42 +02:00
parent 9d73a37f1a
commit 6d22e430ca
2 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,8 @@ pub struct JsonDatabase<JDB> {
} }
impl<JDB: JsonDatabaseBackend> JsonDatabase<JDB> { impl<JDB: JsonDatabaseBackend> JsonDatabase<JDB> {
/// Create a new JSON database with the provided backend, e.g. [`JsonDatabaseFileBackend`]. /// Create a new JSON database with the provided backend, e.g.
/// [`backend::JsonDatabaseFileBackend`].
pub fn new(backend: JDB) -> Self { pub fn new(backend: JDB) -> Self {
JsonDatabase { backend } JsonDatabase { backend }
} }

View File

@ -94,7 +94,8 @@ trait LibraryPrivate {
} }
impl<BLE: BeetsLibraryExecutor> BeetsLibrary<BLE> { impl<BLE: BeetsLibraryExecutor> BeetsLibrary<BLE> {
/// Create a new beets library with the provided executor, e.g. [`BeetsLibraryProcessExecutor`]. /// Create a new beets library with the provided executor, e.g.
/// [`executor::BeetsLibraryProcessExecutor`].
pub fn new(executor: BLE) -> Self { pub fn new(executor: BLE) -> Self {
BeetsLibrary { executor } BeetsLibrary { executor }
} }