aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornjaremko2017-07-20 22:22:35 -0400
committernjaremko2017-07-20 22:22:35 -0400
commitd5bab3f8665256aa1a1cc05b6822dc2d3869ab74 (patch)
tree1a8bf34b79a8d40b8a77a3fc15fd651ddc5659b5
parent79254251d52b62ea5b20ba5eb042ea7c31963de8 (diff)
downloadpodcast-d5bab3f8665256aa1a1cc05b6822dc2d3869ab74.tar.bz2
Remove dead_code warning
-rw-r--r--.gitignore1
-rw-r--r--Cargo.toml2
-rw-r--r--src/structs.rs1
3 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index eccd7b4..afa5b0e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/target/
**/*.rs.bk
+*.lock
diff --git a/Cargo.toml b/Cargo.toml
index 860858b..48d4511 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "podcast"
-version = "0.1.2"
+version = "0.1.3"
authors = ["njaremko <njaremko@gmail.com>"]
description = "A command line podcast player"
license = "GPL-3.0"
diff --git a/src/structs.rs b/src/structs.rs
index 7282996..a94c96e 100644
--- a/src/structs.rs
+++ b/src/structs.rs
@@ -85,6 +85,7 @@ impl Podcast {
self.0.title()
}
+ #[allow(dead_code)]
pub fn url(&self) -> &str {
self.0.link()
}