Skip to content

Commit 96cb968

Browse files
committed
test: verify Rust pre-commit hooks with formatting issues
1 parent 9d1ccf0 commit 96cb968

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test_rust.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Test file for Rust pre-commit hooks
2+
use std::collections::HashMap;
3+
4+
pub fn test_function( ) -> i32{
5+
let mut map=HashMap::new();
6+
map.insert("key","value");
7+
42
8+
}
9+
10+
pub fn another_function(a:i32,b:i32)->i32{
11+
a+b
12+
}

0 commit comments

Comments
 (0)