|
|
@ -9,7 +9,7 @@ |
|
|
|
** @description: Input here. |
|
|
|
*/ |
|
|
|
|
|
|
|
use trait_day08::{Tweet, Summary, NewsArticle}; |
|
|
|
use trait_day08::{Tweet, Summary, NewsArticle, notify}; |
|
|
|
|
|
|
|
fn main() { |
|
|
|
let tweet = Tweet { |
|
|
@ -26,4 +26,5 @@ fn main() { |
|
|
|
content: String::from("The Pittsubrgh Penguins once again are the best hockey team in the NHL."), |
|
|
|
}; |
|
|
|
println!("New article available! {}", article.summarize()); |
|
|
|
notify(article); |
|
|
|
} |
|
|
|