1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-21 12:28:30 +00:00
Martin Nordholts aefc8fd824 src/printer.rs: Simplify Plain Text fallback code
By forwarding the task to find the `Plain Text` syntax to `assets`. Not only does
the code become simpler; we also get rid of a call to `self.get_syntax_set()`
which is beneficial to the long term goal of replacing `syntaxes.bin` with
`minimal_syntaxes.bin`.

Note that the use of `.expect()` is not a regression in error handling. It was
previously hidden in `.find_syntax_plain_text()`.
2021-09-29 17:54:45 +02:00
..
2021-09-12 15:50:10 +02:00
2021-09-12 15:50:10 +02:00
2020-04-22 23:55:28 +02:00
2021-03-07 14:59:10 +01:00
2020-12-28 09:27:40 +01:00
2021-05-27 12:05:07 +02:00
2020-04-22 23:55:28 +02:00