You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let metadata = (message, commit, author, email, time);
230
230
Some((tree, metadata))
231
231
});
232
-
let langs = langs.instatiate_map(name).unwrap();
233
-
let langs = &*langs.as_slice().iter().collect::<Box<[_]>>();
232
+
let langs = langs.instantiate_map(name).unwrap();
233
+
let langs = langs.as_slice();
234
234
ifletFilter::Date(date) = filter {
235
235
let date = DateTime::parse_from_rfc2822(date)?.with_timezone(&Utc);
236
236
let commit = commits.min_by_key(|commit| (commit.1.4.sub(date).num_seconds().abs()));
@@ -320,7 +320,7 @@ fn sender(
320
320
id:ObjectId,
321
321
repo: gix::Repository,
322
322
file_exts:&[&str],
323
-
langs:&[&InstatiatedLanguage<'_>],
323
+
langs:&[InstantiatedLanguage<'_>],
324
324
file:&FileFilterType,
325
325
) -> Result<Vec<ParsedFile>,String>{
326
326
let object = repo.find_object(id).map_err(|_| "failed to find object")?;
@@ -335,7 +335,7 @@ fn traverse_tree(
335
335
repo:&gix::Repository,
336
336
path:String,
337
337
file_exts:&[&str],
338
-
langs:&[&InstatiatedLanguage<'_>],
338
+
langs:&[InstantiatedLanguage<'_>],
339
339
filetype:&FileFilterType,
340
340
) -> Result<Vec<ParsedFile>,String>{
341
341
let files_exts_iter = file_exts.iter();
@@ -534,7 +534,7 @@ pub struct CommitInfo {
534
534
// function that takes a vec of files paths and there contents and a function name and uses find_function_in_file_with_commit to find the function in each file and returns a vec of the functions
535
535
fnfind_function_in_files_with_commit(
536
536
files:Vec<(String,String)>,
537
-
langs:&[&InstatiatedLanguage<'_>],
537
+
langs:&[InstantiatedLanguage<'_>],
538
538
) -> Vec<ParsedFile>{
539
539
// commenting out this parallelization seems to net a gain in performance with tree sitter
0 commit comments