Move XDG global variables into their own module.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user