Fix doc comment indentation

This commit is contained in:
Ethan Girouard 2024-05-26 20:44:40 -04:00
parent bcb24c2a97
commit af604a9ddc
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
2 changed files with 18 additions and 18 deletions

View File

@ -11,16 +11,16 @@ cfg_if! {
} }
/// Add an album to the database /// Add an album to the database
/// ///
/// # Arguments /// # Arguments
/// ///
/// * `album_title` - The name of the artist to add /// * `album_title` - The name of the artist to add
/// * `release_data` - The release date of the album (Optional) /// * `release_data` - The release date of the album (Optional)
/// * `image_path` - The path to the album's image file (Optional) /// * `image_path` - The path to the album's image file (Optional)
/// ///
/// # Returns /// # Returns
/// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error /// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error
/// ///
#[server(endpoint = "albums/add-album")] #[server(endpoint = "albums/add-album")]
pub async fn add_album(album_title: String, release_date: Option<String>, image_path: Option<String>) -> Result<(), ServerFnError> { pub async fn add_album(album_title: String, release_date: Option<String>, image_path: Option<String>) -> Result<(), ServerFnError> {
use crate::schema::albums::{self}; use crate::schema::albums::{self};

View File

@ -10,14 +10,14 @@ cfg_if! {
} }
/// Add an artist to the database /// Add an artist to the database
/// ///
/// # Arguments /// # Arguments
/// ///
/// * `artist_name` - The name of the artist to add /// * `artist_name` - The name of the artist to add
/// ///
/// # Returns /// # Returns
/// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error /// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error
/// ///
#[server(endpoint = "artists/add-artist")] #[server(endpoint = "artists/add-artist")]
pub async fn add_artist(artist_name: String) -> Result<(), ServerFnError> { pub async fn add_artist(artist_name: String) -> Result<(), ServerFnError> {
use crate::schema::artists::dsl::*; use crate::schema::artists::dsl::*;