mirror of https://github.com/LemmyNet/lemmy
Remove error-type feature from lemmy-utils (#4474)
* Remove error-type feature from lemmy-utils * fixes --------- Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>remove-federate-higher-id-error
parent
ab4deaa49a
commit
328a48c9f5
@ -1,16 +1,24 @@
|
|||||||
use doku::json::{AutoComments, CommentsStyle, Formatting, ObjectsStyle};
|
use cfg_if::cfg_if;
|
||||||
use lemmy_utils::settings::structs::Settings;
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let fmt = Formatting {
|
cfg_if! {
|
||||||
auto_comments: AutoComments::none(),
|
if #[cfg(feature = "full")] {
|
||||||
comments_style: CommentsStyle {
|
use doku::json::{AutoComments, CommentsStyle, Formatting, ObjectsStyle};
|
||||||
separator: "#".to_owned(),
|
use lemmy_utils::settings::structs::Settings;
|
||||||
},
|
let fmt = Formatting {
|
||||||
objects_style: ObjectsStyle {
|
auto_comments: AutoComments::none(),
|
||||||
surround_keys_with_quotes: false,
|
comments_style: CommentsStyle {
|
||||||
use_comma_as_separator: false,
|
separator: "#".to_owned(),
|
||||||
},
|
},
|
||||||
..Default::default()
|
objects_style: ObjectsStyle {
|
||||||
};
|
surround_keys_with_quotes: false,
|
||||||
println!("{}", doku::to_json_fmt_val(&fmt, &Settings::default()));
|
use_comma_as_separator: false,
|
||||||
|
},
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
|
println!("{}", doku::to_json_fmt_val(&fmt, &Settings::default()));
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue