main: replace ostream with fmt::formatter

1 job for test in 3 minutes and 22 seconds