chore: restrict Error visibility
This commit is contained in:
parent
8de66cc58e
commit
a291a8c2e8
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ use std::path::PathBuf;
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum ThemeError {
|
pub(crate) enum ThemeError {
|
||||||
#[error("No 'index.theme' file for {0}")]
|
#[error("No 'index.theme' file for {0}")]
|
||||||
ThemeIndexNotFound(PathBuf),
|
ThemeIndexNotFound(PathBuf),
|
||||||
#[error("IoError: {0}")]
|
#[error("IoError: {0}")]
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ pub(super) fn try_build_icon_path<P: AsRef<Path>>(name: &str, path: P) -> Option
|
||||||
}
|
}
|
||||||
|
|
||||||
// Iter through the base paths and get all theme directories
|
// Iter through the base paths and get all theme directories
|
||||||
pub fn get_all_themes() -> Result<BTreeMap<String, Theme>> {
|
pub(super) fn get_all_themes() -> Result<BTreeMap<String, Theme>> {
|
||||||
let mut icon_themes = BTreeMap::new();
|
let mut icon_themes = BTreeMap::new();
|
||||||
for theme_base_dir in BASE_PATHS.iter() {
|
for theme_base_dir in BASE_PATHS.iter() {
|
||||||
for entry in theme_base_dir.read_dir()? {
|
for entry in theme_base_dir.read_dir()? {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue