From ee7febb8c433877ebeeeb737ddb66c3c7fd9f943 Mon Sep 17 00:00:00 2001 From: Jim Infield Date: Tue, 10 Aug 2021 16:41:48 -0500 Subject: [PATCH] initial commit --- .gitignore | 1 + Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ src/main.rs | 20 ++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..110a08f --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "cw_rust_athletic-statistics" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a757db6 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "cw_rust_athletic-statistics" +version = "0.1.0" +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..54ab73b --- /dev/null +++ b/src/main.rs @@ -0,0 +1,20 @@ +#![allow(unused)] +fn main() { + + let args = vec![ + "string1", + "string2", + ]; + + println!(); + + for arg in args { + println!("{}",func(&arg)); + }; + + println!(); +} + +fn func(s: &str) -> String { + s.into() +}