Remove unneeded pub

This commit is contained in:
mo8it
2024-05-22 15:04:12 +02:00
parent d0b843d6c4
commit 3bb71c6b0c
18 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ struct Rectangle {
impl Rectangle {
// Only change the test functions themselves
pub fn new(width: i32, height: i32) -> Self {
fn new(width: i32, height: i32) -> Self {
if width <= 0 || height <= 0 {
panic!("Rectangle width and height cannot be negative!")
}