Skip to content

Fix syntax highlighting in ::new()

ratijas requested to merge fix-new into master

This should fix the missing syntax highlighting at the documentation page: https://docs.rs/serialport/4.0.1/serialport/fn.new.html

An alternative would be to actually run it with should_panic attribute instead; but that wouldn't look pretty: AFAIK panicking code blocks are rendered with scary red markers, which is probably not what we want for a normal chunk of suggested code.

Merge request reports