fix: lint issues in todo_app_sqlite_axum example (#999)

* build: add common tasks

* fix: resolve check-style issues
This commit is contained in:
agilarity 2023-05-05 11:27:27 -04:00 committed by GitHub
parent 7e7377f4f7
commit c0bdd464f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,5 @@
extend = { path = "../cargo-make/common.toml" }
[tasks.build]
command = "cargo"
args = ["+nightly", "build-all-features"]

View file

@ -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::*;

View file

@ -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},

View file

@ -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::*;