Skip to content

Commit e35af9b

Browse files
committed
clippy
1 parent 1e2d237 commit e35af9b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

crates/movy-sui/src/compile.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl SuiCompiledPackage {
248248
.map(|v| v.value.to_string())
249249
.unwrap_or_else(|| "-".to_string()),
250250
m.module.address(),
251-
m.module.name().to_string()
251+
m.module.name()
252252
)
253253
};
254254

@@ -283,7 +283,7 @@ impl SuiCompiledPackage {
283283
.package
284284
.deps_compiled_units
285285
.iter()
286-
.map(|v| { format!("{}:{}", v.0.to_string(), fmt_module(&v.1.unit)) })
286+
.map(|v| { format!("{}:{}", v.0, fmt_module(&v.1.unit)) })
287287
.unique()
288288
.join(", ")
289289
);
@@ -330,8 +330,7 @@ impl SuiCompiledPackage {
330330
*addr == ObjectID::from(*v.unit.module.address())
331331
|| v.unit
332332
.address_name
333-
.map(|u| name.as_ref().map(|n| n == &u.value.to_string()))
334-
.flatten()
333+
.and_then(|u| name.as_ref().map(|n| n == &u.value.to_string()))
335334
.unwrap_or_default()
336335
});
337336

0 commit comments

Comments
 (0)