Skip to content

Commit cf3e12b

Browse files
committed
refactor: correct a name
1 parent 2ad9147 commit cf3e12b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ls_colors.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ pub struct LsColors {
1414
impl LsColors {
1515
/// Initialize by reading the current environment's `LS_COLORS`.
1616
pub fn from_env() -> Self {
17-
Self::from_ls_colors_crate(&lscolors::LsColors::from_env().unwrap_or_default())
17+
Self::from_lscolors_crate(&lscolors::LsColors::from_env().unwrap_or_default())
1818
}
1919

2020
/// Parse an `LS_COLORS`-format string into an [`LsColors`].
2121
///
2222
/// Unrecognized or invalid entries are silently ignored.
2323
#[allow(clippy::should_implement_trait, reason = "Nonsense suggestion!")]
2424
pub fn from_str(input: &str) -> Self {
25-
Self::from_ls_colors_crate(&lscolors::LsColors::from_string(input))
25+
Self::from_lscolors_crate(&lscolors::LsColors::from_string(input))
2626
}
2727

2828
/// Derive a [`LsColors`] from an existing [`lscolors::LsColors`].
29-
fn from_ls_colors_crate(ls_colors: &lscolors::LsColors) -> Self {
29+
fn from_lscolors_crate(ls_colors: &lscolors::LsColors) -> Self {
3030
let prefix_for = |indicator: Indicator| {
3131
ls_colors
3232
.style_for_indicator(indicator)

0 commit comments

Comments
 (0)