mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
Delete imports that are already in the prelude
`Vec` and `String` are in the prelude, so qualifying them with `vec::Vec` and `string::String` is unnecessary.
This commit is contained in:
1 parent
a699803ce7
commit
2a53bf5db5
2 files changed
+6
-7
No files matched your search
Generated
+3
-1
@@ -1,4 +1,6 @@
|
||||
[root]
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "rust"
|
||||
version = "0.1.0"
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
use std::string;
|
||||
use std::vec;
|
||||
|
||||
pub struct Item {
|
||||
pub name: string::String,
|
||||
pub name: String,
|
||||
pub sell_in: i32,
|
||||
pub quality: i32,
|
||||
}
|
||||
@@ -18,11 +15,11 @@ impl Item {
|
||||
}
|
||||
|
||||
pub struct GildedRose {
|
||||
pub items: vec::Vec<Item>,
|
||||
pub items: Vec<Item>,
|
||||
}
|
||||
|
||||
impl GildedRose {
|
||||
pub fn new(items: vec::Vec<Item>) -> GildedRose {
|
||||
pub fn new(items: Vec<Item>) -> GildedRose {
|
||||
GildedRose { items: items }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user