diff options
author | sharkdp <davidpeter@web.de> | 2020-04-22 22:41:25 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-04-22 23:55:28 +0200 |
commit | 261a7ea1549cbcd01986f891bbaf1b5936e7641d (patch) | |
tree | d0aae0d40c6ccb9bec3098f473f2e241c61719df /src/assets.rs | |
parent | 53a973e9dd9ecf102d7bcc345846f2632585159a (diff) |
Add *_with_name methods
Diffstat (limited to 'src/assets.rs')
-rw-r--r-- | src/assets.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/assets.rs b/src/assets.rs index 11756672..7831b56c 100644 --- a/src/assets.rs +++ b/src/assets.rs @@ -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 |