diff options
author | fxqnlr <[email protected]> | 2024-09-25 15:22:14 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-25 15:22:14 +0200 |
commit | 5f23d5506698081722eef6e34f11c7fb24e0b212 (patch) | |
tree | e106511c745f47ee71fd8f0eed284cdddf57241b /src/backup.rs | |
parent | 91730bcecda6f2e7ef5e10983d6b0ce0b38196ab (diff) | |
download | arbs-5f23d5506698081722eef6e34f11c7fb24e0b212.tar arbs-5f23d5506698081722eef6e34f11c7fb24e0b212.tar.gz arbs-5f23d5506698081722eef6e34f11c7fb24e0b212.zip |
fix no notifications
Diffstat (limited to 'src/backup.rs')
-rw-r--r-- | src/backup.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backup.rs b/src/backup.rs index b468917..c0621fc 100644 --- a/src/backup.rs +++ b/src/backup.rs | |||
@@ -13,7 +13,7 @@ use crate::{ | |||
13 | config::Config, | 13 | config::Config, |
14 | error::{Error, Result}, | 14 | error::{Error, Result}, |
15 | packages::PackageList, | 15 | packages::PackageList, |
16 | pathinfo::PathInfo, send_notification, | 16 | pathinfo::PathInfo, send_notification, Urgency, |
17 | }; | 17 | }; |
18 | 18 | ||
19 | pub type Id = String; | 19 | pub type Id = String; |
@@ -62,7 +62,7 @@ impl Backup { | |||
62 | path.save(&backup_root)?; | 62 | path.save(&backup_root)?; |
63 | } | 63 | } |
64 | 64 | ||
65 | send_notification("Backup created" , "", notify_rust::Urgency::Normal)?; | 65 | send_notification("Backup created" , "", Urgency::Normal)?; |
66 | 66 | ||
67 | Ok(()) | 67 | Ok(()) |
68 | } | 68 | } |
@@ -126,7 +126,7 @@ impl Backup { | |||
126 | path.restore(config, &backup_root)?; | 126 | path.restore(config, &backup_root)?; |
127 | } | 127 | } |
128 | 128 | ||
129 | send_notification("Backup restored" , "", notify_rust::Urgency::Normal)?; | 129 | send_notification("Backup restored" , "", Urgency::Normal)?; |
130 | 130 | ||
131 | Ok(()) | 131 | Ok(()) |
132 | } | 132 | } |