Skip to content

Commit 1f1ee4c

Browse files
committed
Add custom rustfmt.toml for more accessibility
Let's see how it goes
1 parent 811e46d commit 1f1ee4c

File tree

6 files changed

+25
-23
lines changed

6 files changed

+25
-23
lines changed

loki-client/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fn main() {
2-
println!("Hello, world!");
2+
println!("Hello, world!");
33
}

loki-server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fn main() {
2-
println!("Hello, world!");
2+
println!("Hello, world!");
33
}

loki-shared/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pub fn add(left: usize, right: usize) -> usize {
2-
left + right
2+
left + right
33
}
44

55
#[cfg(test)]
66
mod tests {
7-
use super::*;
7+
use super::*;
88

9-
#[test]
10-
fn it_works() {
11-
let result = add(2, 2);
12-
assert_eq!(result, 4);
13-
}
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
1414
}

lokui/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pub fn add(left: usize, right: usize) -> usize {
2-
left + right
2+
left + right
33
}
44

55
#[cfg(test)]
66
mod tests {
7-
use super::*;
7+
use super::*;
88

9-
#[test]
10-
fn it_works() {
11-
let result = add(2, 2);
12-
assert_eq!(result, 4);
13-
}
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
1414
}

protolok/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pub fn add(left: usize, right: usize) -> usize {
2-
left + right
2+
left + right
33
}
44

55
#[cfg(test)]
66
mod tests {
7-
use super::*;
7+
use super::*;
88

9-
#[test]
10-
fn it_works() {
11-
let result = add(2, 2);
12-
assert_eq!(result, 4);
13-
}
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
1414
}

rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hard_tabs = true
2+
newline_style = "Unix"

0 commit comments

Comments
 (0)