Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Jun 14, 2024
1 parent 5383e16 commit 50ce1e2
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 76 deletions.
142 changes: 71 additions & 71 deletions rust/candid/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions rust/candid_parser/src/assist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ pub fn input(ctx: &Context, ty: &Type, dep: usize) -> Result<IDLValue> {
.with_prompt("Enter a text (type :e to use editor)")
.interact()?;
let text = if text == ":e" {
if let Some(rv) = Editor::new().edit("Enter your text")? {
rv
} else {
String::new()
}
Editor::new().edit("Enter your text")?.unwrap_or_default()
} else {
text
};
Expand Down

0 comments on commit 50ce1e2

Please sign in to comment.