(&self, scope: Scope<'_>)
| 61 | } |
| 62 | |
| 63 | fn exec(&self, scope: Scope<'_>) -> CallResult<()> { |
| 64 | let mut output = self.output.borrow_mut(); |
| 65 | |
| 66 | let (formatted, present, sep) = super::format_vararg(&scope, 0); |
| 67 | output.push_str(&formatted); |
| 68 | if present { |
| 69 | output.push(' '); |
| 70 | output.push_str(&sep.to_string()); |
| 71 | output.push(' '); |
| 72 | } |
| 73 | output.push('\n'); |
| 74 | |
| 75 | let (formatted, present, sep) = super::format_vararg(&scope, 2); |
| 76 | assert!(present, "Second argument must be present"); |
| 77 | assert_eq!(ArgSep::End, sep, "No more arguments expected"); |
| 78 | output.push_str(&formatted); |
| 79 | output.push('\n'); |
| 80 | |
| 81 | Ok(()) |
| 82 | } |
| 83 | } |
nothing calls this directly
no test coverage detected