mirror of
https://github.com/lov3b/ecb-rates.git
synced 2025-06-28 16:00:23 +02:00
Simplify down to show-days
This commit is contained in:
4
src/cache/cache.rs
vendored
4
src/cache/cache.rs
vendored
@ -3,8 +3,8 @@ use std::io::{BufReader, BufWriter};
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use super::CacheLine;
|
||||
use crate::cli::View;
|
||||
use crate::os::Os;
|
||||
use crate::View;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Cache {
|
||||
@ -13,7 +13,7 @@ pub struct Cache {
|
||||
}
|
||||
|
||||
impl Cache {
|
||||
pub fn load(view: View) -> Option<Self> {
|
||||
pub fn load(view: &View) -> Option<Self> {
|
||||
let config_opt = Os::get_current()?.get_config_path();
|
||||
let mut config_path = match config_opt {
|
||||
Ok(k) => k,
|
||||
|
Reference in New Issue
Block a user