colours and formatting fixes

This commit is contained in:
aaron-jack-manning
2022-08-29 19:38:21 +10:00
parent c547fb8997
commit 93fa52611a
9 changed files with 240 additions and 155 deletions

View File

@@ -69,7 +69,7 @@ impl Index {
else {
let coloured_ids : Vec<_> =
ids.iter()
.map(|i| colour::id(*i))
.map(|i| colour::text::id(*i))
.collect();
let mut display_ids = String::new();
@@ -86,7 +86,7 @@ impl Index {
Err(error::Error::Generic(format!("Multiple notes (Ids: [{}]) by that name exist", display_ids)))
}
},
None => Err(error::Error::Generic(format!("A note by the name {} does not exist", colour::task_name(name)))),
None => Err(error::Error::Generic(format!("A note by the name {} does not exist", colour::text::task(name)))),
}
}
}