mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Add *_with_name methods
This commit is contained in:
1 parent
53a973e9dd
commit
261a7ea154
5 files changed
+37
-13
No files matched your search
+1
-2
@@ -311,8 +311,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn syntax_for_stdin_with_content(&self, file_name: &str, content: &[u8]) -> String {
|
||||
let mut input = Input::stdin();
|
||||
input.set_provided_name(Some(OsStr::new(file_name)));
|
||||
let input = Input::stdin().with_name(Some(OsStr::new(file_name)));
|
||||
let mut opened_input = input.open(content).unwrap();
|
||||
|
||||
let syntax = self
|
||||
|
||||
Reference in new issue
Block a user