Move XDG global variables into their own module.

This commit is contained in:
Jordan Petridis
2017-11-22 21:07:21 +02:00
parent 6098f0f54a
commit 02b27d33b6
3 changed files with 30 additions and 25 deletions
+1 -2
View File
@@ -11,7 +11,7 @@ use std::path::Path;
use errors::*;
use hammond_data::{Episode, Podcast};
use hammond_data::{DL_DIR, HAMMOND_CACHE};
use hammond_data::xdg_::{DL_DIR, HAMMOND_CACHE};
// TODO: Replace path that are of type &str with std::path.
// TODO: Have a convention/document absolute/relative paths, if they should end with / or not.
@@ -192,7 +192,6 @@ pub fn cache_image(pd: &Podcast) -> Option<String> {
#[cfg(test)]
mod tests {
use super::*;
use hammond_data::{DL_DIR, HAMMOND_CACHE};
use hammond_data::Source;
use std::fs;