Skip to content

Commit 56b95b8

Browse files
committed
[update] documentation and fix security pipeline.
1 parent 580a87a commit 56b95b8

File tree

40 files changed

+204
-348
lines changed

40 files changed

+204
-348
lines changed

.github/workflows/lambda-repo-security.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
# documentation.
55
# rust-clippy is a tool that runs a bunch of lints to catch common
66
# mistakes in your Rust code and help improve your Rust code.
7-
# More details at https://github.com/rust-lang/rust-clippy
7+
# More details at https://github.com/rust-lang/rust-clippy
88
# and https://rust-lang.github.io/rust-clippy/
99

1010
name: rust fmt + clippy analyze
1111

1212
on:
1313
push:
14-
branches: [ "main" ]
14+
branches: ["main"]
1515
pull_request:
1616
# The branches below must be a subset of the branches above
17-
branches: [ "main" ]
17+
branches: ["main"]
1818
schedule:
19-
- cron: '41 10 * * 5'
19+
- cron: "41 10 * * 5"
2020

2121
jobs:
2222
rust-clippy-analyze:
@@ -25,7 +25,7 @@ jobs:
2525
permissions:
2626
contents: read
2727
security-events: write
28-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
28+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
2929
steps:
3030
- name: Checkout code
3131
uses: actions/checkout@v4
@@ -42,7 +42,9 @@ jobs:
4242
run: cargo install clippy-sarif sarif-fmt
4343

4444
- name: Check formatting
45-
run: cargo fmt --all --check
45+
run: |
46+
rustup component add rustfmt --toolchain nightly-2025-09-26
47+
cargo +nightly-2025-09-26 fmt --all --check
4648
4749
- name: Run rust-clippy
4850
run: |

crates/lambda-rs-args/examples/basic.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
use args::{
2-
Argument,
3-
ArgumentParser,
4-
ArgumentType,
5-
ArgumentValue,
6-
};
1+
use args::{Argument, ArgumentParser, ArgumentType, ArgumentValue};
72

83
fn main() {
94
let parser = ArgumentParser::new("basic")

crates/lambda-rs-args/examples/bools.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use args::{
2-
Argument,
3-
ArgumentParser,
4-
ArgumentType,
5-
};
1+
use args::{Argument, ArgumentParser, ArgumentType};
62

73
fn main() {
84
let parser = ArgumentParser::new("bools")

crates/lambda-rs-args/examples/env_config.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use args::{
2-
Argument,
3-
ArgumentParser,
4-
ArgumentType,
5-
};
1+
use args::{Argument, ArgumentParser, ArgumentType};
62

73
fn main() {
84
// Reads APP_HOST and APP_PORT if set. Also reads from ./app.cfg if present

crates/lambda-rs-args/examples/equals.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use args::{
2-
Argument,
3-
ArgumentParser,
4-
ArgumentType,
5-
};
1+
use args::{Argument, ArgumentParser, ArgumentType};
62

73
fn main() {
84
let parser = ArgumentParser::new("equals")

crates/lambda-rs-args/examples/exclusives.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
use args::{
2-
ArgsError,
3-
Argument,
4-
ArgumentParser,
5-
ArgumentType,
6-
};
1+
use args::{ArgsError, Argument, ArgumentParser, ArgumentType};
72

83
fn main() {
94
// --json and --yaml are mutually exclusive; --out requires --format

crates/lambda-rs-args/examples/positionals.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use args::{
2-
Argument,
3-
ArgumentParser,
4-
ArgumentType,
5-
};
1+
use args::{Argument, ArgumentParser, ArgumentType};
62

73
fn main() {
84
let parser = ArgumentParser::new("pos")

crates/lambda-rs-args/examples/short_count.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use args::{
2-
Argument,
3-
ArgumentParser,
4-
ArgumentType,
5-
};
1+
use args::{Argument, ArgumentParser, ArgumentType};
62

73
fn main() {
84
let parser = ArgumentParser::new("short-count").with_argument(

crates/lambda-rs-args/examples/subcommands.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use args::{
2-
Argument,
3-
ArgumentParser,
4-
ArgumentType,
5-
};
1+
use args::{Argument, ArgumentParser, ArgumentType};
62

73
fn main() {
84
// root

0 commit comments

Comments
 (0)