diff --git a/Source/Fn/Summary.rs b/Source/Fn/Summary.rs index ff3de4b..f6825a8 100644 --- a/Source/Fn/Summary.rs +++ b/Source/Fn/Summary.rs @@ -28,10 +28,10 @@ pub async fn Fn( for (Index, &Current) in Tags.iter().enumerate() { for (_, &Next) in Tags.iter().enumerate().skip(Index + 1) { - let Difference = - crate::Fn::Summary::Difference::Fn(&Repository, Current, Next, Option)?; - - println!("{}", Difference); + println!( + "{}", + crate::Fn::Summary::Difference::Fn(&Repository, Current, Next, Option)? + ); } } } diff --git a/Source/Fn/Summary/Release.rs b/Source/Fn/Summary/Release.rs deleted file mode 100644 index 611f1eb..0000000 --- a/Source/Fn/Summary/Release.rs +++ /dev/null @@ -1,33 +0,0 @@ -/// Generates a release summary. -/// -/// # Arguments -/// -/// * `Option` - A struct containing the necessary information for generating the release summary. -/// -/// # Returns -/// -/// * `Return` - The generated release summary. -/// -/// # Example -/// -/// ``` -/// let option = Option { -/// // Fields needed for release summary generation -/// }; -/// let release_summary = Fn(&option); -/// ``` -pub fn Fn(Difference: &str) -> String { - let mut Release = String::new(); - - Release.push_str("Release Notes:\n"); - - for Difference in Difference.lines() { - if Difference.starts_with("+") && !Difference.starts_with("+++") { - Release.push_str(&format!("Added: {}\n", &Difference[1..])); - } else if Difference.starts_with("-") && !Difference.starts_with("---") { - Release.push_str(&format!("Removed: {}\n", &Difference[1..])); - } - } - - Release -}