pub fn load() -> Result<Self> {
        let mut local_file_path = get_config_path()?.join(TIPS_LOCAL_FOLDER);
        let mut remote_file_path = get_config_path()?.join(TIPS_REMOTE_FOLDER);
        local_file_path.push(TIPS_LOCAL_FILE);
        remote_file_path.push(TIPS_REMOTE_FILE);

        let local_tips = if let Ok(tipset) = TipSet::load(&local_file_path) { tipset } else { TipSet::default() };
        let remote_tips = if let Ok(tipset) = TipSet::load(&remote_file_path) { tipset } else { TipSet::default() };

        Ok(Self {
            local_tips,
            remote_tips,
        })
    }
/// This function loads all the Tips to memory from files in the `tips/` folder.
This function loads all the Tips to memory from files in the `tips/` folder.
This function loads all the Tips to memory from files in the ` tips / ` folder .
pub fn load() -> Result<Self> {
        let mut local_file_path = get_config_path()?.join(TIPS_LOCAL_FOLDER);
        let mut remote_file_path = get_config_path()?.join(TIPS_REMOTE_FOLDER);
        local_file_path.push(TIPS_LOCAL_FILE);
        remote_file_path.push(TIPS_REMOTE_FILE);
        let local_tips = if let Ok(tipset) = TipSet::load(&local_file_path) { tipset } else { TipSet::default() };
        let remote_tips = if let Ok(tipset) = TipSet::load(&remote_file_path) { tipset } else { TipSet::default() };
        Ok(Self {
            local_tips,
            remote_tips,
        })
    }
pub fn load ( ) -> Result < Self > { let mut local_file_path = get_config_path ( ) ? . join ( TIPS_LOCAL_FOLDER ) ; let mut remote_file_path = get_config_path ( ) ? . join ( TIPS_REMOTE_FOLDER ) ; local_file_path . push ( TIPS_LOCAL_FILE ) ; remote_file_path . push ( TIPS_REMOTE_FILE ) ; let local_tips = if let Ok ( tipset ) = TipSet :: load ( & local_file_path ) { tipset } else { TipSet :: default ( ) } ; let remote_tips = if let Ok ( tipset ) = TipSet :: load ( & remote_file_path ) { tipset } else { TipSet :: default ( ) } ; Ok ( Self { local_tips , remote_tips , } ) }
This function loads all the Tips to memory from files in the `tips/` folder.
This function loads all the Tips to memory from files in the ` tips / ` folder .