Compare commits
No commits in common. "d9963ced183b1bccfebd8c1804f58f4c87c08ac5" and "bca900b6924417b9a8a72656df6003490e6453c7" have entirely different histories.
d9963ced18
...
bca900b692
3 changed files with 0 additions and 28 deletions
7
rectangles/Cargo.lock
generated
7
rectangles/Cargo.lock
generated
|
@ -1,7 +0,0 @@
|
||||||
# This file is automatically @generated by Cargo.
|
|
||||||
# It is not intended for manual editing.
|
|
||||||
version = 3
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "rectangles"
|
|
||||||
version = "0.1.0"
|
|
|
@ -1,6 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "rectangles"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
[dependencies]
|
|
|
@ -1,15 +0,0 @@
|
||||||
#[derive(Debug)]
|
|
||||||
struct Rectangle {
|
|
||||||
width: u32,
|
|
||||||
height: u32,
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
let scale = 2;
|
|
||||||
let rect1 = Rectangle {
|
|
||||||
width: dbg!(30 * scale),
|
|
||||||
height: 50,
|
|
||||||
};
|
|
||||||
|
|
||||||
dbg!(&rect1);
|
|
||||||
}
|
|
Loading…
Reference in a new issue