projects
/
rtx3080.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use of emojis...
[rtx3080.git]
/
src
/
main.rs
diff --git
a/src/main.rs
b/src/main.rs
index
057d68b
..
642a6e9
100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-23,7
+23,7
@@
type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
#[derive(Debug, Deserialize, Serialize)]
struct Config {
smtp_login: String,
#[derive(Debug, Deserialize, Serialize)]
struct Config {
smtp_login: String,
- smtp_password: String
+ smtp_password: String
,
}
impl Config {
}
impl Config {
@@
-82,9
+82,9
@@
fn main() -> Result<()> {
).collect();
if match_items.is_empty() {
).collect();
if match_items.is_empty() {
- println!("No matches
-_-´´
");
+ println!("No matches
😿
");
} else if send_email(&match_items[..], &config.smtp_login, &config.smtp_password) {
} else if send_email(&match_items[..], &config.smtp_login, &config.smtp_password) {
- println!("Some matches has been found! An e-mail has been sent!");
+ println!("Some matches has been found
😺
! An e-mail has been sent!");
return Ok(())
} else {
println!("Unable to send e-mail");
return Ok(())
} else {
println!("Unable to send e-mail");