mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
clippy
This commit is contained in:
parent
8750cdbfbe
commit
9162bb896b
1 changed files with 18 additions and 0 deletions
18
vendor/morphic_lib/src/api.rs
vendored
18
vendor/morphic_lib/src/api.rs
vendored
|
@ -262,6 +262,12 @@ pub struct TypeDefBuilder {
|
|||
inner: TypeBuilder,
|
||||
}
|
||||
|
||||
impl Default for TypeDefBuilder {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl TypeDefBuilder {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
|
@ -936,6 +942,12 @@ pub struct FuncDefBuilder {
|
|||
argument: ValueId,
|
||||
}
|
||||
|
||||
impl Default for FuncDefBuilder {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl FuncDefBuilder {
|
||||
pub fn new() -> Self {
|
||||
let mut expr_builder = ExprBuilder::new();
|
||||
|
@ -979,6 +991,12 @@ pub struct ConstDefBuilder {
|
|||
expr_builder: ExprBuilder,
|
||||
}
|
||||
|
||||
impl Default for ConstDefBuilder {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl ConstDefBuilder {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue