projects
/
rtx3080.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ff52924
)
use of emojis...
author
Grégory Burri
<gregory.burri@matisa.ch>
Wed, 9 Sep 2020 11:48:52 +0000
(13:48 +0200)
committer
Grégory Burri
<gregory.burri@matisa.ch>
Wed, 9 Sep 2020 11:48:52 +0000
(13:48 +0200)
src/main.rs
patch
|
blob
|
history
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");