From 03c5acda65c159e119bd2029297b0d2591dabebb Mon Sep 17 00:00:00 2001 From: Amulya singh Date: Mon, 1 Jan 2024 14:03:09 +0530 Subject: [PATCH] Iterator::collect should ideally support conversions #425 --- subdoc/subdoc_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subdoc/subdoc_main.cc b/subdoc/subdoc_main.cc index f85388fe0..040ba36b6 100644 --- a/subdoc/subdoc_main.cc +++ b/subdoc/subdoc_main.cc @@ -236,7 +236,7 @@ int main(int argc, const char** argv) { } run_options.macro_prefixes = sus::iter::from_range(option_include_macro_prefixes) - .cloned() + .map(|s| s.to_owned()) .collect>(); run_options.generate_source_links = !option_no_source_links.getValue(); if (option_remove_path_prefix.getNumOccurrences() > 0) {