Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dw5 authored May 9, 2024
1 parent 2afed19 commit 8235887
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ fn main() {
if !silent {
printer
.println_out(
r#" Index: {}, Upload: {}, Cache: {}, Cors: {}, Coop: {}, Coep: {}, Range: {}, Sort: {}, Threads: {}
r#" Index: {}, Upload: {}, Cache: {}, Cors: {}, Range: {}, Sort: {}, Threads: {}
Auth: {}, Compression: {}
https: {}, Cert: {}, Cert-Password: {}
Root: {},
Expand All @@ -296,12 +296,9 @@ fn main() {
enable_string(upload),
enable_string(cache),
enable_string(cors),
enable_string(coop),
enable_string(coep),
enable_string(range),
enable_string(sort),
threads.to_string(),
.to_string(),
auth.unwrap_or("disabled").to_string(),
compression_string,
(if cert.is_some() {
Expand Down Expand Up @@ -463,7 +460,7 @@ impl Handler for MainHandler {
));
}

if self.upload.is_some() && req.method == method::Post {
if self.upload() && req.method == method::Post {

Check failure on line 463 in src/main.rs

View workflow job for this annotation

GitHub Actions / clippy

no method named `upload` found for reference `&MainHandler` in the current scope

error[E0599]: no method named `upload` found for reference `&MainHandler` in the current scope --> src/main.rs:463:17 | 463 | if self.upload() && req.method == method::Post { | ^^^^^^-- help: remove the arguments | | | field, not a method

Check failure on line 463 in src/main.rs

View workflow job for this annotation

GitHub Actions / clippy

no method named `upload` found for reference `&MainHandler` in the current scope

error[E0599]: no method named `upload` found for reference `&MainHandler` in the current scope --> src/main.rs:463:17 | 463 | if self.upload() && req.method == method::Post { | ^^^^^^-- help: remove the arguments | | | field, not a method

Check failure on line 463 in src/main.rs

View workflow job for this annotation

GitHub Actions / Unitest (ubuntu-latest)

no method named `upload` found for reference `&MainHandler` in the current scope

Check failure on line 463 in src/main.rs

View workflow job for this annotation

GitHub Actions / Build release Executable (ubuntu-latest)

no method named `upload` found for reference `&MainHandler` in the current scope

Check failure on line 463 in src/main.rs

View workflow job for this annotation

GitHub Actions / Build release Executable (ubuntu-latest)

no method named `upload` found for reference `&MainHandler` in the current scope
if let Err((s, msg)) = self.save_files(req, &fs_path) {
return Ok(error_resp(s, &msg, &self.base_url));
} else if self.base_url == "/" {
Expand Down Expand Up @@ -772,7 +769,7 @@ impl MainHandler {
}

// Optional upload form
let upload_form = if self.upload.is_some() {
let upload_form = if self.upload() {

Check failure on line 772 in src/main.rs

View workflow job for this annotation

GitHub Actions / clippy

no method named `upload` found for reference `&MainHandler` in the current scope

error[E0599]: no method named `upload` found for reference `&MainHandler` in the current scope --> src/main.rs:772:35 | 772 | let upload_form = if self.upload() { | ^^^^^^-- help: remove the arguments | | | field, not a method

Check failure on line 772 in src/main.rs

View workflow job for this annotation

GitHub Actions / clippy

no method named `upload` found for reference `&MainHandler` in the current scope

error[E0599]: no method named `upload` found for reference `&MainHandler` in the current scope --> src/main.rs:772:35 | 772 | let upload_form = if self.upload() { | ^^^^^^-- help: remove the arguments | | | field, not a method

Check failure on line 772 in src/main.rs

View workflow job for this annotation

GitHub Actions / Unitest (ubuntu-latest)

no method named `upload` found for reference `&MainHandler` in the current scope

Check failure on line 772 in src/main.rs

View workflow job for this annotation

GitHub Actions / Build release Executable (ubuntu-latest)

no method named `upload` found for reference `&MainHandler` in the current scope

Check failure on line 772 in src/main.rs

View workflow job for this annotation

GitHub Actions / Build release Executable (ubuntu-latest)

no method named `upload` found for reference `&MainHandler` in the current scope
format!(
r#"
<form style="margin-top:1em; margin-bottom:1em;" action="{base_url}{path}" method="POST" enctype="multipart/form-data">
Expand Down

0 comments on commit 8235887

Please sign in to comment.