xref: /aosp_15_r20/external/bazelbuild-rules_rust/test/clippy/src/lib.rs (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)

greeting() -> String1 pub fn greeting() -> String {
2     "Hello World".to_owned()
3 }
4 
5 // too_many_args/clippy.toml will require no more than 2 args.
with_args(_: u32, _: u32, _: u32)6 pub fn with_args(_: u32, _: u32, _: u32) {}
7 
8 #[cfg(test)]
9 mod tests {
10     use super::*;
11     #[test]
it_works()12     fn it_works() {
13         assert_eq!(greeting(), "Hello World".to_owned());
14     }
15 }
16