diff options
| author | Mica White <botahamec@outlook.com> | 2026-05-09 13:35:56 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-05-09 13:35:56 -0400 |
| commit | 91b63446f7a211220ccddaaecb602cbc0476ab41 (patch) | |
| tree | faee0e511b21656dea580f5b2e3761bba1ceda51 | |
| parent | cec300b0f3bff20e774b4163e9aab1c048be1ffb (diff) | |
Setup rustfmt
| -rw-r--r-- | Cargo.lock | 7 | ||||
| -rwxr-xr-x | rustfmt.toml | 3 | ||||
| -rw-r--r-- | src/lib.rs | 14 |
3 files changed, 17 insertions, 7 deletions
diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..133c06e --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "varihappy" +version = "0.1.0" diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100755 index 0000000..d3d0d1e --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,3 @@ +edition = "2024" +hard_tabs = true +newline_style = "Unix" @@ -1,14 +1,14 @@ pub fn add(left: u64, right: u64) -> u64 { - left + right + left + right } #[cfg(test)] mod tests { - use super::*; + use super::*; - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); - } + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } } |
