msansm1/rss-podcast-dlpublic Fork
⑂ b38040b
Commits
⬇ Clone ▾
git clone https://git.rickub.com/msansm1/rss-podcast-dl.git
git clone ssh://git@rickub.com/msansm1/rss-podcast-dl.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

Correction des warnings de compilation (dead_code)

msansm1 committed 2026-07-05T22:09:54+02:00 Browse files
b38040b parent: ccd9183
modified src/config/playlist.rs +1 -0
@@ -41,6 +41,7 @@ impl Playlist {
4141 }
4242
4343 /// Creates a new playlist with the given name and feed IDs
44+ #[allow(dead_code)]
4445 pub fn with_feeds(name: impl Into<String>, feed_ids: Vec<String>) -> Self {
4546 Self {
4647 id: Uuid::new_v4().to_string(),
@@ -41,6 +41,7 @@ impl Playlist {
41 }41 }
42 42
43 /// Creates a new playlist with the given name and feed IDs43 /// Creates a new playlist with the given name and feed IDs
44+ #[allow(dead_code)]
44 pub fn with_feeds(name: impl Into<String>, feed_ids: Vec<String>) -> Self {45 pub fn with_feeds(name: impl Into<String>, feed_ids: Vec<String>) -> Self {
45 Self {46 Self {
46 id: Uuid::new_v4().to_string(),47 id: Uuid::new_v4().to_string(),
modified src/ui/notifications.rs +4 -0
@@ -27,6 +27,7 @@ pub enum NotificationType {
2727 /// Success message (green)
2828 Success,
2929 /// Warning message (yellow/orange)
30+ #[allow(dead_code)]
3031 Warning,
3132 /// Error message (red)
3233 Error,
@@ -54,6 +55,7 @@ impl Notification {
5455 }
5556
5657 /// Creates a new warning notification
58+ #[allow(dead_code)]
5759 pub fn warning(message: impl Into<String>) -> Self {
5860 Self {
5961 message: message.into(),
@@ -129,6 +131,7 @@ impl NotificationManager {
129131 }
130132
131133 /// Adds a warning notification
134+ #[allow(dead_code)]
132135 pub fn warning(&mut self, message: impl Into<String>) {
133136 self.add_notification(Notification::warning(message));
134137 }
@@ -149,6 +152,7 @@ impl NotificationManager {
149152 }
150153
151154 /// Returns the number of active notifications
155+ #[allow(dead_code)]
152156 pub fn active_count(&self) -> usize {
153157 self.notifications.iter().filter(|n| n.is_visible()).count()
154158 }
@@ -27,6 +27,7 @@ pub enum NotificationType {
27 /// Success message (green)27 /// Success message (green)
28 Success,28 Success,
29 /// Warning message (yellow/orange)29 /// Warning message (yellow/orange)
30+ #[allow(dead_code)]
30 Warning,31 Warning,
31 /// Error message (red)32 /// Error message (red)
32 Error,33 Error,
@@ -54,6 +55,7 @@ impl Notification {
54 }55 }
55 56
56 /// Creates a new warning notification57 /// Creates a new warning notification
58+ #[allow(dead_code)]
57 pub fn warning(message: impl Into<String>) -> Self {59 pub fn warning(message: impl Into<String>) -> Self {
58 Self {60 Self {
59 message: message.into(),61 message: message.into(),
@@ -129,6 +131,7 @@ impl NotificationManager {
129 }131 }
130 132
131 /// Adds a warning notification133 /// Adds a warning notification
134+ #[allow(dead_code)]
132 pub fn warning(&mut self, message: impl Into<String>) {135 pub fn warning(&mut self, message: impl Into<String>) {
133 self.add_notification(Notification::warning(message));136 self.add_notification(Notification::warning(message));
134 }137 }
@@ -149,6 +152,7 @@ impl NotificationManager {
149 }152 }
150 153
151 /// Returns the number of active notifications154 /// Returns the number of active notifications
155+ #[allow(dead_code)]
152 pub fn active_count(&self) -> usize {156 pub fn active_count(&self) -> usize {
153 self.notifications.iter().filter(|n| n.is_visible()).count()157 self.notifications.iter().filter(|n| n.is_visible()).count()
154 }158 }