mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2026-08-22 06:03:27 +08:00
reorganized the directories
This commit is contained in:
8
projects/clippy_demo/Cargo.toml
Normal file
8
projects/clippy_demo/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "clippy_demo"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
5
projects/clippy_demo/src/main.rs
Normal file
5
projects/clippy_demo/src/main.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
let x = std::f64::consts::PI;
|
||||
let r = 8.0;
|
||||
println!("圆的面积为 {}", x * r * r);
|
||||
}
|
||||
Reference in New Issue
Block a user