File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ pub struct LsColors {
1414impl 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)
You can’t perform that action at this time.
0 commit comments