Skip to content

Commit bb4c9fd

Browse files
committed
clippy
1 parent 7c38f7a commit bb4c9fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/webserver/database/sql_pseudofunctions.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ pub(super) fn extract_req_param_non_nested<'a>(
305305
.uploaded_files
306306
.get(x)
307307
.and_then(|x| x.content_type.as_ref())
308-
.map(|x| x.as_ref())
309-
.map(Cow::Borrowed),
308+
.map(|x| Cow::Borrowed(x.as_ref())),
310309
StmtParam::ReadFileAsText(_) => bail!("Nested read_file_as_text() function not allowed",),
311310
StmtParam::ReadFileAsDataUrl(_) => {
312311
bail!("Nested read_file_as_data_url() function not allowed",)

0 commit comments

Comments
 (0)