Commit 51bc37ba authored by Leo Le Bouter's avatar Leo Le Bouter

Add small ergonomic change from jm review

parent c2b83bac
......@@ -252,7 +252,7 @@ fn upload_to_erp5<R: Read + Send + 'static>(
.to_str()?
.parse()?;
let resp = client
let _resp = client
.post(doc_url.to_owned())
.multipart(
multipart::Form::new()
......@@ -281,7 +281,7 @@ fn upload_to_erp5<R: Read + Send + 'static>(
params.insert("field_your_workflow_action", "share_action");
params.insert("Base_callDialogMethod:method", "");
let resp = client.post(doc_url.to_owned()).form(&params).send()?;
let _resp = client.post(doc_url.to_owned()).form(&params).send()?;
// workaround for ERP5 disappearing documents race condition bug
thread::sleep(Duration::from_secs(3));
......@@ -322,7 +322,7 @@ fn main() -> Result<()> {
let ignored_dirs = m
.values_of("ignored-dirs")
.unwrap_or(clap::Values::default())
.map(|v| PathBuf::from(v))
.map(PathBuf::from)
.collect();
let disk_partitions = psutil::disk::partitions_physical()?;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment