mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: lint issues in todo_app_sqlite_axum
example (#999)
* build: add common tasks * fix: resolve check-style issues
This commit is contained in:
parent
7e7377f4f7
commit
c0bdd464f6
4 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
extend = { path = "../cargo-make/common.toml" }
|
||||
|
||||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["+nightly", "build-all-features"]
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use cfg_if::cfg_if;
|
||||
use leptos::*;
|
||||
pub mod error_template;
|
||||
pub mod errors;
|
||||
pub mod fallback;
|
||||
|
@ -8,6 +7,7 @@ pub mod todo;
|
|||
// Needs to be in lib.rs AFAIK because wasm-bindgen needs us to be compiling a lib. I may be wrong.
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "hydrate")] {
|
||||
use leptos::*;
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
use crate::todo::*;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use cfg_if::cfg_if;
|
||||
use leptos::*;
|
||||
// boilerplate to run in different modes
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "ssr")] {
|
||||
if #[cfg(feature = "ssr")] {
|
||||
use leptos::*;
|
||||
use axum::{
|
||||
routing::{post, get},
|
||||
extract::{Extension, Path},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::error_template::{ErrorTemplate, ErrorTemplateProps};
|
||||
use crate::error_template::ErrorTemplate;
|
||||
use cfg_if::cfg_if;
|
||||
use leptos::*;
|
||||
use leptos_meta::*;
|
||||
|
|
Loading…
Reference in a new issue