Skip to content

Commit 0ddc35a

Browse files
committed
fmt and clippy issues
1 parent 4b4b927 commit 0ddc35a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sway-core/src/language/ty/declaration/function.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,9 @@ impl TyFunctionSig {
793793
TyFunctionSigTypeParameter::Const(p) => {
794794
match p {
795795
ConstGenericExpr::Literal { val, .. } => val.to_string(),
796-
ConstGenericExpr::AmbiguousVariableExpression { ident } => ident.as_str().to_string(),
796+
ConstGenericExpr::AmbiguousVariableExpression { ident } => {
797+
ident.as_str().to_string()
798+
}
797799
}
798800
}
799801
})

sway-core/src/type_system/ast_elements/type_parameter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use crate::{
22
abi_generation::abi_str::AbiStrContext,
33
decl_engine::{
4-
parsed_id::ParsedDeclId, DeclEngineInsert as _, DeclMapping, InterfaceItemMap, ItemMap, ParsedDeclEngineGet as _,
4+
parsed_id::ParsedDeclId, DeclEngineInsert as _, DeclMapping, InterfaceItemMap, ItemMap,
5+
ParsedDeclEngineGet as _,
56
},
67
engine_threading::*,
78
has_changes,

0 commit comments

Comments
 (0)