Skip to content

Commit

Permalink
Fix the signature of diff content contains functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Dec 26, 2024
1 parent 83cbab5 commit 3f4957c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gitql/functions/diffs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,23 @@ pub(crate) fn register_diffs_function_signatures(map: &mut HashMap<&'static str,
"diff_added_content_contains",
Signature {
parameters: vec![Box::new(DiffChangesType), Box::new(TextType)],
return_type: Box::new(TextType),
return_type: Box::new(BoolType),
},
);

map.insert(
"diff_deleted_content_contains",
Signature {
parameters: vec![Box::new(DiffChangesType), Box::new(TextType)],
return_type: Box::new(TextType),
return_type: Box::new(BoolType),
},
);

map.insert(
"diff_modified_content_contains",
Signature {
parameters: vec![Box::new(DiffChangesType), Box::new(TextType)],
return_type: Box::new(TextType),
return_type: Box::new(BoolType),
},
);

Expand Down

0 comments on commit 3f4957c

Please sign in to comment.