(I think it'd be even clearer as:

```rust
let delim = "#".repeat(n);
format!("r{delim}\"{string}\"{delim}", delim=delim, string=s)
```
)