mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
clippy CI
This commit is contained in:
parent
6b52024792
commit
35c8b0f40e
2 changed files with 15 additions and 15 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
||||||
- name: Clippy check
|
- name: Clippy check
|
||||||
uses: auguwu/clippy-action@1.1.2
|
uses: auguwu/clippy-action@1.1.2
|
||||||
with:
|
with:
|
||||||
args: --all-features --tests -- -D warnings
|
args: --all-features --tests
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
|
|
|
@ -261,7 +261,7 @@ impl<K: Eq + Hash + Debug + Clone> UseBreakpointsReturn<K> {
|
||||||
|
|
||||||
/// Breakpoint keys for Tailwind V2
|
/// Breakpoint keys for Tailwind V2
|
||||||
///
|
///
|
||||||
/// See https://tailwindcss.com/docs/breakpoints
|
/// See [https://tailwindcss.com/docs/breakpoints]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum BreakpointsTailwind {
|
pub enum BreakpointsTailwind {
|
||||||
Sm,
|
Sm,
|
||||||
|
@ -273,7 +273,7 @@ pub enum BreakpointsTailwind {
|
||||||
|
|
||||||
/// Breakpoint definitions for Tailwind V2
|
/// Breakpoint definitions for Tailwind V2
|
||||||
///
|
///
|
||||||
/// See https://tailwindcss.com/docs/breakpoints
|
/// See [https://tailwindcss.com/docs/breakpoints]
|
||||||
pub fn breakpoints_tailwind() -> HashMap<BreakpointsTailwind, u32> {
|
pub fn breakpoints_tailwind() -> HashMap<BreakpointsTailwind, u32> {
|
||||||
HashMap::from([
|
HashMap::from([
|
||||||
(BreakpointsTailwind::Sm, 640),
|
(BreakpointsTailwind::Sm, 640),
|
||||||
|
@ -286,7 +286,7 @@ pub fn breakpoints_tailwind() -> HashMap<BreakpointsTailwind, u32> {
|
||||||
|
|
||||||
/// Breakpoint keys for Bootstrap V5
|
/// Breakpoint keys for Bootstrap V5
|
||||||
///
|
///
|
||||||
/// See https://getbootstrap.com/docs/5.0/layout/breakpoints
|
/// See [https://getbootstrap.com/docs/5.0/layout/breakpoints]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum BreakpointsBootstrapV5 {
|
pub enum BreakpointsBootstrapV5 {
|
||||||
Sm,
|
Sm,
|
||||||
|
@ -298,7 +298,7 @@ pub enum BreakpointsBootstrapV5 {
|
||||||
|
|
||||||
/// Breakpoint definitions for Bootstrap V5
|
/// Breakpoint definitions for Bootstrap V5
|
||||||
///
|
///
|
||||||
/// See https://getbootstrap.com/docs/5.0/layout/breakpoints
|
/// See [https://getbootstrap.com/docs/5.0/layout/breakpoints]
|
||||||
pub fn breakpoints_bootstrap_v5() -> HashMap<BreakpointsBootstrapV5, u32> {
|
pub fn breakpoints_bootstrap_v5() -> HashMap<BreakpointsBootstrapV5, u32> {
|
||||||
HashMap::from([
|
HashMap::from([
|
||||||
(BreakpointsBootstrapV5::Sm, 576),
|
(BreakpointsBootstrapV5::Sm, 576),
|
||||||
|
@ -311,7 +311,7 @@ pub fn breakpoints_bootstrap_v5() -> HashMap<BreakpointsBootstrapV5, u32> {
|
||||||
|
|
||||||
/// Breakpoint keys for Material UI V5
|
/// Breakpoint keys for Material UI V5
|
||||||
///
|
///
|
||||||
/// See https://mui.com/material-ui/customization/breakpoints/
|
/// See [https://mui.com/material-ui/customization/breakpoints/]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum BreakpointsMaterial {
|
pub enum BreakpointsMaterial {
|
||||||
Xs,
|
Xs,
|
||||||
|
@ -323,7 +323,7 @@ pub enum BreakpointsMaterial {
|
||||||
|
|
||||||
/// Breakpoint definitions for Material UI V5
|
/// Breakpoint definitions for Material UI V5
|
||||||
///
|
///
|
||||||
/// See https://mui.com/material-ui/customization/breakpoints/
|
/// See [https://mui.com/material-ui/customization/breakpoints/]
|
||||||
pub fn breakpoints_material() -> HashMap<BreakpointsMaterial, u32> {
|
pub fn breakpoints_material() -> HashMap<BreakpointsMaterial, u32> {
|
||||||
HashMap::from([
|
HashMap::from([
|
||||||
(BreakpointsMaterial::Xs, 1),
|
(BreakpointsMaterial::Xs, 1),
|
||||||
|
@ -336,7 +336,7 @@ pub fn breakpoints_material() -> HashMap<BreakpointsMaterial, u32> {
|
||||||
|
|
||||||
/// Breakpoint keys for Ant Design
|
/// Breakpoint keys for Ant Design
|
||||||
///
|
///
|
||||||
/// See https://ant.design/components/layout/#breakpoint-width
|
/// See [https://ant.design/components/layout/#breakpoint-width]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum BreakpointsAntDesign {
|
pub enum BreakpointsAntDesign {
|
||||||
Xs,
|
Xs,
|
||||||
|
@ -349,7 +349,7 @@ pub enum BreakpointsAntDesign {
|
||||||
|
|
||||||
/// Breakpoint definitions for Ant Design
|
/// Breakpoint definitions for Ant Design
|
||||||
///
|
///
|
||||||
/// See https://ant.design/components/layout/#breakpoint-width
|
/// See [https://ant.design/components/layout/#breakpoint-width]
|
||||||
pub fn breakpoints_ant_design() -> HashMap<BreakpointsAntDesign, u32> {
|
pub fn breakpoints_ant_design() -> HashMap<BreakpointsAntDesign, u32> {
|
||||||
HashMap::from([
|
HashMap::from([
|
||||||
(BreakpointsAntDesign::Xs, 480),
|
(BreakpointsAntDesign::Xs, 480),
|
||||||
|
@ -363,7 +363,7 @@ pub fn breakpoints_ant_design() -> HashMap<BreakpointsAntDesign, u32> {
|
||||||
|
|
||||||
/// Breakpoint keys for Quasar V2
|
/// Breakpoint keys for Quasar V2
|
||||||
///
|
///
|
||||||
/// See https://quasar.dev/style/breakpoints
|
/// See [https://quasar.dev/style/breakpoints]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum BreakpointsQuasar {
|
pub enum BreakpointsQuasar {
|
||||||
Xs,
|
Xs,
|
||||||
|
@ -375,7 +375,7 @@ pub enum BreakpointsQuasar {
|
||||||
|
|
||||||
/// Breakpoint definitions for Quasar V2
|
/// Breakpoint definitions for Quasar V2
|
||||||
///
|
///
|
||||||
/// See https://quasar.dev/style/breakpoints
|
/// See [https://quasar.dev/style/breakpoints]
|
||||||
pub fn breakpoints_quasar() -> HashMap<BreakpointsQuasar, u32> {
|
pub fn breakpoints_quasar() -> HashMap<BreakpointsQuasar, u32> {
|
||||||
HashMap::from([
|
HashMap::from([
|
||||||
(BreakpointsQuasar::Xs, 1),
|
(BreakpointsQuasar::Xs, 1),
|
||||||
|
@ -388,7 +388,7 @@ pub fn breakpoints_quasar() -> HashMap<BreakpointsQuasar, u32> {
|
||||||
|
|
||||||
/// Breakpoint keys for Sematic UI
|
/// Breakpoint keys for Sematic UI
|
||||||
///
|
///
|
||||||
/// See https://semantic-ui.com/elements/container.html
|
/// See [https://semantic-ui.com/elements/container.html]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum BreakpointsSematic {
|
pub enum BreakpointsSematic {
|
||||||
Mobile,
|
Mobile,
|
||||||
|
@ -399,7 +399,7 @@ pub enum BreakpointsSematic {
|
||||||
|
|
||||||
/// Breakpoint definitions for Sematic UI
|
/// Breakpoint definitions for Sematic UI
|
||||||
///
|
///
|
||||||
/// See https://semantic-ui.com/elements/container.html
|
/// See [https://semantic-ui.com/elements/container.html]
|
||||||
pub fn breakpoints_sematic() -> HashMap<BreakpointsSematic, u32> {
|
pub fn breakpoints_sematic() -> HashMap<BreakpointsSematic, u32> {
|
||||||
HashMap::from([
|
HashMap::from([
|
||||||
(BreakpointsSematic::Mobile, 1),
|
(BreakpointsSematic::Mobile, 1),
|
||||||
|
@ -411,7 +411,7 @@ pub fn breakpoints_sematic() -> HashMap<BreakpointsSematic, u32> {
|
||||||
|
|
||||||
/// Breakpoint keys for Master CSS
|
/// Breakpoint keys for Master CSS
|
||||||
///
|
///
|
||||||
/// See https://docs.master.co/css/breakpoints
|
/// See [https://docs.master.co/css/breakpoints]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum BreakpointsMasterCss {
|
pub enum BreakpointsMasterCss {
|
||||||
Xxxs,
|
Xxxs,
|
||||||
|
@ -428,7 +428,7 @@ pub enum BreakpointsMasterCss {
|
||||||
|
|
||||||
/// Breakpoint definitions for Master CSS
|
/// Breakpoint definitions for Master CSS
|
||||||
///
|
///
|
||||||
/// See https://docs.master.co/css/breakpoints
|
/// See [https://docs.master.co/css/breakpoints]
|
||||||
pub fn breakpoints_master_css() -> HashMap<BreakpointsMasterCss, u32> {
|
pub fn breakpoints_master_css() -> HashMap<BreakpointsMasterCss, u32> {
|
||||||
HashMap::from([
|
HashMap::from([
|
||||||
(BreakpointsMasterCss::Xxxs, 360),
|
(BreakpointsMasterCss::Xxxs, 360),
|
||||||
|
|
Loading…
Add table
Reference in a new issue