Commit graph

10340 commits

Author SHA1 Message Date
bunnie
b8dc0a981c edge cases in cargo-fmt
so...i think in this case, maybe the build.rs wasn't formatted?
it got picked up the second time when i ran the command.

in the case of pddbkey.rs, I think the changes made by rustfmt
were so dramatic it required two passes for it to become clean.
2024-01-15 00:56:24 +08:00
bunnie
e274fa8873 relate perlib to the libs/ directory
perflib was made before we had libs, so put it into its new, proper
home.
2024-01-15 00:52:43 +08:00
bunnie
6891a4a24f fix formatting on perflib 2024-01-15 00:48:59 +08:00
bunnie
fd11b2fe1c exclude more vendored libraries 2024-01-15 00:48:44 +08:00
bunnie
536ad89010 format apps/mtxcli
somehow, this was missed.
2024-01-15 00:46:06 +08:00
bunnie
0c50581e9c more rustfmt-related fixes 2024-01-15 00:43:52 +08:00
bunnie
9b05964e5e don't format loader imports 2024-01-15 00:38:47 +08:00
bunnie
a9285b672a bump verifier 2024-01-15 00:33:25 +08:00
bunnie
ac74c091f0 bump lockfile for latest version pins 2024-01-15 00:27:21 +08:00
bunnie
01c00194f0 clean up build issues for packaging 2024-01-15 00:24:29 +08:00
bunnie
0267a56989 format Cargo.tomls
because apparently cargo fmt doesn't format Cargo.toml files???
2024-01-15 00:14:39 +08:00
bunnie
208c02f5af strip trailing whitespace on xous-rs 2024-01-15 00:00:53 +08:00
bunnie
9f141fe4cc strip trailing whitespace on gam 2024-01-15 00:00:00 +08:00
bunnie
221972e955 remove trailing whitespace on loader 2024-01-14 23:59:20 +08:00
bunnie
7d9874e522 strip trailing whitespace on mass-storage 2024-01-14 23:58:20 +08:00
bunnie
b4e632130a skip vendored files from formatting 2024-01-14 23:58:01 +08:00
bunnie
607db9c573 remove trailing space in kernel 2024-01-14 23:40:30 +08:00
bunnie
9f5a5d0ada rustfmt vs rustc linter: FIGHT
rustfmt shortened some blocks to be one-liners.
the blocks ensure the contents have Drop called on them.
the linter hates the braces, saying they are unused.

Perhaps, in fact, the contents don't need Drop called
on them exactly at that time because there isn't a conflicting
statement elsewhere in the block that uses it. It *might*
be right.

But then, later on, when you write some code that assumes
that implicit Drop happened, guess what. You'll spend hours
scratching your head as to what went wrong.

I just stuck a comment in the block to keep rustfmt from
thinking it should format that block.
2024-01-14 23:34:07 +08:00
bunnie
e72bd86bb1 renode regenerated, add the format exclusion 2024-01-14 23:23:28 +08:00
bunnie
9b211d4cb0 work around rustfmt issue 2024-01-14 23:23:05 +08:00
bunnie
454ecac95a fix rustfmt::skip warning
turns out, stackoverflow has out of date info. woohoo!
2024-01-14 23:12:52 +08:00
bunnie
7b27a7f8fd format xtask 2024-01-14 23:10:58 +08:00
bunnie
1917c07a35 format xous-rs 2024-01-14 23:10:29 +08:00
bunnie
34da894173 format xous-ipc 2024-01-14 23:09:37 +08:00
bunnie
8ca1ee9bc2 suppress formatting of utralib files 2024-01-14 23:08:57 +08:00
bunnie
01853a500d format utralib
formatting of generated files is suppressed with a `rustfmt::skip`
directive on the `mod` import. HOWEVER, if a change is made to the
file and saved, it may still be formatted automatically until the
files are updated with codegens that put a format suppression
directive at the top
2024-01-14 23:05:01 +08:00
bunnie
c86df3eae8 remove misguided comment 2024-01-14 23:04:50 +08:00
bunnie
a09fa70bc9 format tools 2024-01-14 23:00:13 +08:00
bunnie
063b99cac5 format svd2utra 2024-01-14 22:59:33 +08:00
bunnie
4ae6b241fa format svd2repl 2024-01-14 22:58:55 +08:00
bunnie
913beaa791 format services/xous-ticktimer 2024-01-14 22:58:20 +08:00
bunnie
4bf9e8bf3a format services/xous-susres 2024-01-14 22:57:54 +08:00
bunnie
9668179753 format services/xous-names 2024-01-14 22:57:09 +08:00
bunnie
931309590f format services/xous-log 2024-01-14 22:56:54 +08:00
bunnie
4f6f595b2f format services/usb-test 2024-01-14 22:56:32 +08:00
bunnie
11f9552b96 don't format key lookup tables 2024-01-14 22:53:45 +08:00
bunnie
425e48ed45 format service/usb-device-xous
avoided formatting of any keymapping lookup tables...
2024-01-14 22:52:52 +08:00
bunnie
49c50e12c1 format services/tts 2024-01-14 22:47:12 +08:00
bunnie
ff710f41dc format services/trng 2024-01-14 22:46:48 +08:00
bunnie
a4d3f8bc5e format services/ticktimer-test-client 2024-01-14 22:46:17 +08:00
bunnie
a8bd47cc51 format services/test-spawn 2024-01-14 22:45:53 +08:00
bunnie
b0a150c0c8 add test-spawn to lockfile so we can format it 2024-01-14 22:45:36 +08:00
bunnie
d7f94575fc format services/status
it did some things i hated, some things i liked. I'll take it.
2024-01-14 22:44:28 +08:00
bunnie
9972291fca prevent future formatting of in-line assembly section 2024-01-14 22:43:34 +08:00
bunnie
c1897a3738 format services/spinor 2024-01-14 22:43:05 +08:00
bunnie
f64d0351a4 format services/shellchat
a big bank of AES tests got formatted. I think it's NBD,
the constants for AES testing are...not changing.
2024-01-14 22:41:26 +08:00
bunnie
da954783ee format services/root-keys
formatted some pretty big blocks of either autogenerated
or copy/pasted blobs used for emulation.

I think I'll let the formatting stand because the autogen
code is "never" going to change (i.e. they are physical constants
tied to the properties of the hardware) or the pasted blobs
have no real meaning beyond the blob itself so if they were
regenerated it'd be another copypasta with format.
2024-01-14 22:38:46 +08:00
bunnie
679435c5f4 format sevices/pddb
wow the formatter hated this code.

hope i can recognize it later on when it needs work,
nobody else probably wants to touch it. :-/
2024-01-14 22:35:23 +08:00
bunnie
8d30c5bfc5 format services/net 2024-01-14 22:31:48 +08:00
bunnie
668d62573a format services/modals 2024-01-14 22:30:22 +08:00