|
|
@@ -5,7 +5,7 @@ use crate::fs::fields as f;
|
|
|
|
|
|
|
|
|
impl f::Git {
|
|
|
- pub fn render(&self, colours: &Colours) -> TextCell {
|
|
|
+ pub fn render(&self, colours: &dyn Colours) -> TextCell {
|
|
|
TextCell {
|
|
|
width: DisplayWidth::from(2),
|
|
|
contents: vec![
|
|
|
@@ -18,7 +18,7 @@ impl f::Git {
|
|
|
|
|
|
|
|
|
impl f::GitStatus {
|
|
|
- fn render(&self, colours: &Colours) -> ANSIString<'static> {
|
|
|
+ fn render(&self, colours: &dyn Colours) -> ANSIString<'static> {
|
|
|
match *self {
|
|
|
f::GitStatus::NotModified => colours.not_modified().paint("-"),
|
|
|
f::GitStatus::New => colours.new().paint("N"),
|