clippy fix self

This commit is contained in:
NotAFile 2022-01-14 15:34:57 +01:00
parent 266d3122c4
commit b9eb6222de
1 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ pub struct Wire {
impl Wire {
pub fn new(id: impl Into<String>, width: u32, port_info: Option<PortOption>) -> Self {
Wire {
Self {
id: id.into(),
width,
port_info,
@ -90,7 +90,7 @@ pub struct Module {
impl Module {
pub fn new(name: impl Into<String>) -> Self {
Module {
Self {
name: name.into(),
wires: Default::default(),
cells: Default::default(),
@ -144,7 +144,7 @@ pub struct Cell {
impl Cell {
pub fn new(id: &str, celltype: &str) -> Self {
Cell {
Self {
id: id.into(),
celltype: celltype.into(),
parameters: Vec::new(),