Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
open-runtime-module-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noxim
open-runtime-module-library
Commits
54bb99e2
Commit
54bb99e2
authored
5 years ago
by
Bryan Chen
Browse files
Options
Downloads
Patches
Plain Diff
use stable rustfmt
parent
dae062fd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/test.yml
+1
-1
1 addition, 1 deletion
.github/workflows/test.yml
githooks/pre-commit
+1
-1
1 addition, 1 deletion
githooks/pre-commit
with
2 additions
and
2 deletions
.github/workflows/test.yml
+
1
−
1
View file @
54bb99e2
...
@@ -22,7 +22,7 @@ jobs:
...
@@ -22,7 +22,7 @@ jobs:
target
:
wasm32-unknown-unknown
target
:
wasm32-unknown-unknown
default
:
true
default
:
true
-
name
:
Check format
-
name
:
Check format
run
:
cargo fmt --all -- --check
run
:
cargo
+stable
fmt --all -- --check
-
name
:
Build
-
name
:
Build
run
:
cargo build --locked
run
:
cargo build --locked
-
name
:
Run tests
-
name
:
Run tests
...
...
This diff is collapsed.
Click to expand it.
githooks/pre-commit
+
1
−
1
View file @
54bb99e2
...
@@ -6,7 +6,7 @@ REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
...
@@ -6,7 +6,7 @@ REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
files
=
$((
git diff
--
cached
--
name-only
--
diff-filter
=
ACMR
|
grep
-
Ei
"
\.
rs$"
)
||
true
)
files
=
$((
git diff
--
cached
--
name-only
--
diff-filter
=
ACMR
|
grep
-
Ei
"
\.
rs$"
)
||
true
)
if
[
!
-
z
"
${
files
}
"
]
;
then
if
[
!
-
z
"
${
files
}
"
]
;
then
cargo
fmt
--
all
cargo
+
stable
fmt
--
all
git add
$(
echo
"
$files
"
|
paste
-s
-d
" "
-
)
git add
$(
echo
"
$files
"
|
paste
-s
-d
" "
-
)
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment