Skip to content

Remove fully qualified standard types #7

@ElectricCoffee

Description

@ElectricCoffee

This issue is simply suggesting to remove the fully qualified types when dealing with things already imported by default.

This

#[derive(Clone, Default, Debug)]
pub struct Mount {
	pub device: std::string::String,
	pub mount_point: std::string::String,
	pub file_system_type: std::string::String,
	pub options: std::vec::Vec<std::string::String>,
}

could be written as this

#[derive(Clone, Default, Debug)]
pub struct Mount {
	pub device: String,
	pub mount_point: String,
	pub file_system_type: String,
	pub options: Vec<String>,
}

which is cleaner, more readable, better expresses the intent, and works out of the box in standard Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions