clippy fix self
This commit is contained in:
parent
266d3122c4
commit
b9eb6222de
|
@ -52,7 +52,7 @@ pub struct Wire {
|
||||||
|
|
||||||
impl Wire {
|
impl Wire {
|
||||||
pub fn new(id: impl Into<String>, width: u32, port_info: Option<PortOption>) -> Self {
|
pub fn new(id: impl Into<String>, width: u32, port_info: Option<PortOption>) -> Self {
|
||||||
Wire {
|
Self {
|
||||||
id: id.into(),
|
id: id.into(),
|
||||||
width,
|
width,
|
||||||
port_info,
|
port_info,
|
||||||
|
@ -90,7 +90,7 @@ pub struct Module {
|
||||||
|
|
||||||
impl Module {
|
impl Module {
|
||||||
pub fn new(name: impl Into<String>) -> Self {
|
pub fn new(name: impl Into<String>) -> Self {
|
||||||
Module {
|
Self {
|
||||||
name: name.into(),
|
name: name.into(),
|
||||||
wires: Default::default(),
|
wires: Default::default(),
|
||||||
cells: Default::default(),
|
cells: Default::default(),
|
||||||
|
@ -144,7 +144,7 @@ pub struct Cell {
|
||||||
|
|
||||||
impl Cell {
|
impl Cell {
|
||||||
pub fn new(id: &str, celltype: &str) -> Self {
|
pub fn new(id: &str, celltype: &str) -> Self {
|
||||||
Cell {
|
Self {
|
||||||
id: id.into(),
|
id: id.into(),
|
||||||
celltype: celltype.into(),
|
celltype: celltype.into(),
|
||||||
parameters: Vec::new(),
|
parameters: Vec::new(),
|
||||||
|
|
Loading…
Reference in New Issue