mirror of
https://github.com/MedzikUser/HomeDisk.git
synced 2024-08-14 21:46:53 +00:00
fix: cargo tests
This commit is contained in:
parent
ed6ec8790b
commit
aa5cecc93c
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ impl Database {
|
|||
///
|
||||
/// db.conn.execute(sqlx::query(&fs::read_to_string("../tables.sql").unwrap())).await.unwrap();
|
||||
///
|
||||
/// let user = User::new("medzik", "SuperSecretPassword123").unwrap();
|
||||
/// let user = User::new("medzik", "SuperSecretPassword123");
|
||||
/// db.create_user(user).await.unwrap();
|
||||
/// }
|
||||
/// ```
|
||||
|
|
|
@ -17,7 +17,7 @@ impl User {
|
|||
/// ```
|
||||
/// use homedisk_utils::database::User;
|
||||
///
|
||||
/// let user = User::new("medzik", "SuperSecretPassword123!").unwrap();
|
||||
/// let user = User::new("medzik", "SuperSecretPassword123!");
|
||||
/// ```
|
||||
pub fn new(username: &str, password: &str) -> Self {
|
||||
// create user UUID
|
||||
|
|
Loading…
Reference in a new issue