Browse Source

cargo clippy

pull/1072/head
Chrislearn Young Philipp Oppermann 5 months ago
parent
commit
167d8e957c
Failed to extract signature
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      examples/c++-arrow-dataflow/run.rs
  2. +1
    -1
      libraries/core/src/descriptor/validate.rs

+ 2
- 2
examples/c++-arrow-dataflow/run.rs View File

@@ -72,7 +72,7 @@ async fn main() -> eyre::Result<()> {


fn find_arrow_config() -> eyre::Result<ArrowConfig> { fn find_arrow_config() -> eyre::Result<ArrowConfig> {
let output = Command::new("pkg-config") let output = Command::new("pkg-config")
.args(&["--cflags", "arrow"])
.args(["--cflags", "arrow"])
.output() .output()
.wrap_err("Failed to run pkg-config. Make sure Arrow C++ is installed")?; .wrap_err("Failed to run pkg-config. Make sure Arrow C++ is installed")?;


@@ -85,7 +85,7 @@ fn find_arrow_config() -> eyre::Result<ArrowConfig> {
let cflags = String::from_utf8(output.stdout)?.trim().to_string(); let cflags = String::from_utf8(output.stdout)?.trim().to_string();


let output = Command::new("pkg-config") let output = Command::new("pkg-config")
.args(&["--libs", "arrow"])
.args(["--libs", "arrow"])
.output() .output()
.wrap_err("Failed to get Arrow library flags")?; .wrap_err("Failed to get Arrow library flags")?;




+ 1
- 1
libraries/core/src/descriptor/validate.rs View File

@@ -49,7 +49,7 @@ pub fn check_dataflow(
info!("skipping path check for node with build command"); info!("skipping path check for node with build command");
} else { } else {
resolve_path(source, working_dir).wrap_err_with(|| { resolve_path(source, working_dir).wrap_err_with(|| {
format!("Could not find source path `{}`", source)
format!("Could not find source path `{source}`")
})?; })?;
}; };
} }


Loading…
Cancel
Save