main.rs
⎇
Raw
1// Leptos' empty `view! {}` (the "render nothing" idiom) expands to a unit
2// expression, which trips these two lints on the macro-generated code.
3#![allow(clippy::unit_arg, clippy::unused_unit)]
4
5mod api;
6mod app;
7mod cm;
8mod components;
9mod editor;
10mod preview;
11mod router;
12mod util;
13mod views;
14
15fn main() {
16 console_error_panic_hook::set_once();
17 leptos::mount::mount_to_body(app::App);
18}
19