@@ -57,9 +57,7 @@ pub unsafe extern "C" fn fff_file_item_get_relative_path(
5757/// ## Safety
5858/// `item` must be a valid `FffFileItem` pointer or null.
5959#[ unsafe( no_mangle) ]
60- pub unsafe extern "C" fn fff_file_item_get_file_name (
61- item : * const FffFileItem ,
62- ) -> * const c_char {
60+ pub unsafe extern "C" fn fff_file_item_get_file_name ( item : * const FffFileItem ) -> * const c_char {
6361 if item. is_null ( ) {
6462 return ptr:: null ( ) ;
6563 }
@@ -74,9 +72,7 @@ pub unsafe extern "C" fn fff_file_item_get_file_name(
7472/// ## Safety
7573/// `item` must be a valid `FffFileItem` pointer or null.
7674#[ unsafe( no_mangle) ]
77- pub unsafe extern "C" fn fff_file_item_get_git_status (
78- item : * const FffFileItem ,
79- ) -> * const c_char {
75+ pub unsafe extern "C" fn fff_file_item_get_git_status ( item : * const FffFileItem ) -> * const c_char {
8076 if item. is_null ( ) {
8177 return ptr:: null ( ) ;
8278 }
@@ -113,9 +109,7 @@ pub unsafe extern "C" fn fff_file_item_get_modified(item: *const FffFileItem) ->
113109/// ## Safety
114110/// `item` must be a valid `FffFileItem` pointer or null.
115111#[ unsafe( no_mangle) ]
116- pub unsafe extern "C" fn fff_file_item_get_total_frecency_score (
117- item : * const FffFileItem ,
118- ) -> i64 {
112+ pub unsafe extern "C" fn fff_file_item_get_total_frecency_score ( item : * const FffFileItem ) -> i64 {
119113 if item. is_null ( ) {
120114 return 0 ;
121115 }
@@ -127,9 +121,7 @@ pub unsafe extern "C" fn fff_file_item_get_total_frecency_score(
127121/// ## Safety
128122/// `item` must be a valid `FffFileItem` pointer or null.
129123#[ unsafe( no_mangle) ]
130- pub unsafe extern "C" fn fff_file_item_get_access_frecency_score (
131- item : * const FffFileItem ,
132- ) -> i64 {
124+ pub unsafe extern "C" fn fff_file_item_get_access_frecency_score ( item : * const FffFileItem ) -> i64 {
133125 if item. is_null ( ) {
134126 return 0 ;
135127 }
@@ -171,9 +163,7 @@ pub unsafe extern "C" fn fff_file_item_get_is_binary(item: *const FffFileItem) -
171163/// ## Safety
172164/// `m` must be a valid `FffGrepMatch` pointer or null.
173165#[ unsafe( no_mangle) ]
174- pub unsafe extern "C" fn fff_grep_match_get_relative_path (
175- m : * const FffGrepMatch ,
176- ) -> * const c_char {
166+ pub unsafe extern "C" fn fff_grep_match_get_relative_path ( m : * const FffGrepMatch ) -> * const c_char {
177167 if m. is_null ( ) {
178168 return ptr:: null ( ) ;
179169 }
@@ -187,9 +177,7 @@ pub unsafe extern "C" fn fff_grep_match_get_relative_path(
187177/// ## Safety
188178/// `m` must be a valid `FffGrepMatch` pointer or null.
189179#[ unsafe( no_mangle) ]
190- pub unsafe extern "C" fn fff_grep_match_get_file_name (
191- m : * const FffGrepMatch ,
192- ) -> * const c_char {
180+ pub unsafe extern "C" fn fff_grep_match_get_file_name ( m : * const FffGrepMatch ) -> * const c_char {
193181 if m. is_null ( ) {
194182 return ptr:: null ( ) ;
195183 }
@@ -204,9 +192,7 @@ pub unsafe extern "C" fn fff_grep_match_get_file_name(
204192/// ## Safety
205193/// `m` must be a valid `FffGrepMatch` pointer or null.
206194#[ unsafe( no_mangle) ]
207- pub unsafe extern "C" fn fff_grep_match_get_git_status (
208- m : * const FffGrepMatch ,
209- ) -> * const c_char {
195+ pub unsafe extern "C" fn fff_grep_match_get_git_status ( m : * const FffGrepMatch ) -> * const c_char {
210196 if m. is_null ( ) {
211197 return ptr:: null ( ) ;
212198 }
@@ -220,9 +206,7 @@ pub unsafe extern "C" fn fff_grep_match_get_git_status(
220206/// ## Safety
221207/// `m` must be a valid `FffGrepMatch` pointer or null.
222208#[ unsafe( no_mangle) ]
223- pub unsafe extern "C" fn fff_grep_match_get_line_content (
224- m : * const FffGrepMatch ,
225- ) -> * const c_char {
209+ pub unsafe extern "C" fn fff_grep_match_get_line_content ( m : * const FffGrepMatch ) -> * const c_char {
226210 if m. is_null ( ) {
227211 return ptr:: null ( ) ;
228212 }
@@ -286,9 +270,7 @@ pub unsafe extern "C" fn fff_grep_match_get_size(m: *const FffGrepMatch) -> u64
286270/// ## Safety
287271/// `m` must be a valid `FffGrepMatch` pointer or null.
288272#[ unsafe( no_mangle) ]
289- pub unsafe extern "C" fn fff_grep_match_get_total_frecency_score (
290- m : * const FffGrepMatch ,
291- ) -> i64 {
273+ pub unsafe extern "C" fn fff_grep_match_get_total_frecency_score ( m : * const FffGrepMatch ) -> i64 {
292274 if m. is_null ( ) {
293275 return 0 ;
294276 }
@@ -301,9 +283,7 @@ pub unsafe extern "C" fn fff_grep_match_get_total_frecency_score(
301283/// ## Safety
302284/// `m` must be a valid `FffGrepMatch` pointer or null.
303285#[ unsafe( no_mangle) ]
304- pub unsafe extern "C" fn fff_grep_match_get_access_frecency_score (
305- m : * const FffGrepMatch ,
306- ) -> i64 {
286+ pub unsafe extern "C" fn fff_grep_match_get_access_frecency_score ( m : * const FffGrepMatch ) -> i64 {
307287 if m. is_null ( ) {
308288 return 0 ;
309289 }
0 commit comments