Enable clippy::option_as_ref_deref
(#8747)
This PR enables the [`clippy::option_as_ref_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#/option_as_ref_deref) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
ca9d5a2f6b
commit
3ab16d8012
2 changed files with 2 additions and 3 deletions
|
@ -7123,7 +7123,7 @@ impl Project {
|
|||
.set_local_settings(
|
||||
worktree_id.as_u64() as usize,
|
||||
directory.clone(),
|
||||
file_content.as_ref().map(String::as_str),
|
||||
file_content.as_deref(),
|
||||
cx,
|
||||
)
|
||||
.log_err();
|
||||
|
@ -7424,7 +7424,7 @@ impl Project {
|
|||
.set_local_settings(
|
||||
worktree.entity_id().as_u64() as usize,
|
||||
PathBuf::from(&envelope.payload.path).into(),
|
||||
envelope.payload.content.as_ref().map(String::as_str),
|
||||
envelope.payload.content.as_deref(),
|
||||
cx,
|
||||
)
|
||||
.log_err();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue