This should just be

```rust
self.as_slice().fmt(f)
```