mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +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:
parent
a699803ce7
commit
2a53bf5db5
4
rust/Cargo.lock
generated
4
rust/Cargo.lock
generated
@ -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 }
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user