1 2 3 4 5 6 7 8 9 10 11 12
// Simple function with cyclomatic complexity = 1 fn simple_function() -> i32 { 42 } fn another_simple() -> String { String::from("hello") } fn basic_arithmetic(x: i32, y: i32) -> i32 { x + y }