Derive Document for simple enums
This commit is contained in:
parent
458025b8bf
commit
6f85995379
3 changed files with 36 additions and 23 deletions
|
|
@ -7,7 +7,7 @@ use cove_input::KeyBinding;
|
|||
pub use cove_macro::Document;
|
||||
use serde::Serialize;
|
||||
|
||||
pub(crate) fn toml_value_as_markdown<T: Serialize>(value: &T) -> String {
|
||||
pub fn toml_value_as_markdown<T: Serialize>(value: &T) -> String {
|
||||
let mut result = String::new();
|
||||
value
|
||||
.serialize(toml::ser::ValueSerializer::new(&mut result))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue