When using grep_searcher crate #2859
-
I would like to have something similar to the example on the repo, And later i use searcher.search_path() My issue is that search path requires sink (printer) as a third param, i would like to add my search results to a vector or a map. So basically,is there an option of using search_path() and saving results from it to a vector of strings? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yes, that's exactly what this example is doing: https://docs.rs/grep-searcher/0.1.13/grep_searcher/index.html#example
Help me help you. Don't tell, show. Here's how to do it. |
Beta Was this translation helpful? Give feedback.
Firstly, that's not an MRE. Please read the links I shared with you.
Secondly, you aren't using the example in the docs, you're using something different.
Thirdly, the error message tells you that line numbers aren't enabled. Yet you have explicitly disabled line numbers. That seems like your problem...