Skip to content

Commit db0d826

Browse files
cargo formatted: [function-grep] fixed tests, fixed grammar
also simplified passing list of langauges
1 parent b5415da commit db0d826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function-grep/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub fn get_file_type_from_file_ext<'a>(
8686
/// If there is no file extension for this file name, or there is no language for this file in the provided language list.
8787
pub fn get_file_type_from_file<'a>(
8888
file_name: &str,
89-
langs: &'a [ InstantiatedLanguage<'a>],
89+
langs: &'a [InstantiatedLanguage<'a>],
9090
) -> Result<&'a InstantiatedLanguage<'a>, Error> {
9191
file_name
9292
.rsplit_once('.')

0 commit comments

Comments
 (0)