diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-05-21 14:11:15 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-05-21 14:14:09 +1200 |
| commit | 95d6b648293b417309d0857b2a93c0cace70c53d (patch) | |
| tree | fd59e21035f40e7ff2207f407748472ea9217e40 /src/test | |
| parent | 843c12601a63961c185c479e258313e568f3a7d8 (diff) | |
Replace WriteMode with EmitMode and backup bool
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index 7507b2de9aa..c151fa3def7 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -243,7 +243,7 @@ fn self_tests() { fn stdin_formatting_smoke_test() { let input = Input::Text("fn main () {}".to_owned()); let mut config = Config::default(); - config.set().write_mode(WriteMode::Display); + config.set().emit_mode(EmitMode::Stdout); let mut buf: Vec<u8> = vec![]; let error_summary = format_input(input, &config, Some(&mut buf)).unwrap(); assert!(error_summary.has_no_errors()); @@ -773,7 +773,7 @@ impl ConfigCodeBlock { let input = Input::Text(self.code_block.as_ref().unwrap().to_owned()); let mut config = self.get_block_config(); - config.set().write_mode(WriteMode::Display); + config.set().emit_mode(EmitMode::Stdout); let mut buf: Vec<u8> = vec![]; let error_summary = format_input(input, &config, Some(&mut buf)).unwrap(); |
