mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-14 00:27:12 +00:00
fix: run autofix.ci
on pull requests only (#3238)
This commit is contained in:
parent
d4044cd5a1
commit
c2b239dba2
2 changed files with 5 additions and 4 deletions
7
.github/workflows/autofix.yml
vendored
7
.github/workflows/autofix.yml
vendored
|
@ -1,9 +1,10 @@
|
|||
name: autofix.ci
|
||||
on:
|
||||
workflow_call:
|
||||
pull_request:
|
||||
push:
|
||||
branches: ["main"]
|
||||
# Running this workflow on main branch pushes requires write permission to apply changes.
|
||||
# Leave it alone for future uses.
|
||||
# push:
|
||||
# branches: ["main"]
|
||||
permissions:
|
||||
contents: read
|
||||
concurrency:
|
||||
|
|
|
@ -371,7 +371,7 @@ pub trait ToTemplate {
|
|||
/// The `style` attribute content known at compile time.
|
||||
const STYLE: &'static str = "";
|
||||
/// The length of the template.
|
||||
const LEN: usize = Self::TEMPLATE.as_bytes().len();
|
||||
const LEN: usize = Self::TEMPLATE.len();
|
||||
|
||||
/// Renders a view type to a template. This does not take actual view data,
|
||||
/// but can be used for constructing part of an HTML `<template>` that corresponds
|
||||
|
|
Loading…
Reference in a new issue