Skip to content

Commit

Permalink
Adds three TODO comments [minor]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed Nov 29, 2023
1 parent 5ea8f4b commit 59fd483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sources/selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ fn source_index_to_confidence(source_index: usize) -> u8 {
/// we first only compare the two numbers at index 0,
/// and only if they are equal, we continue the comparison,
/// looking at the numbers in the second position of the two vectors.
// TODO Maybe make this use a custom struct as return instead?
fn valor(validity: &validator::Result, confidence: Confidence, source_index: usize) -> [u8; 4] {
let res_confs = validator::res_to_confidences(validity);
[
Expand Down
2 changes: 2 additions & 0 deletions src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ use url::Url;
pub type Result = std::result::Result<Validity, Error>;
pub type Validator = fn(&mut Environment, &str) -> Result;

// TODO Document this function! (hae... what does it do? why two confidences?)
// TODO Maybe make this use a custom struct as return instead?
#[must_use]
pub const fn res_to_confidences(res: &Result) -> [Confidence; 2] {
match &res {
Expand Down

0 comments on commit 59fd483

Please sign in to comment.