Skip to content

Commit 1fa295e

Browse files
authored
Merge pull request #2843 from ksss/cargo-fmt
Fix CI for cargo:lint
2 parents 7e1e0e6 + 43b0948 commit 1fa295e

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

rust/ruby-rbs-sys/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ fn build(include_dir: &Path, src_dir: &Path) -> Result<(), Box<dyn Error>> {
3333
Ok(())
3434
}
3535

36-
3736
fn source_files<P: AsRef<Path>>(root_dir: P) -> Result<Vec<String>, Box<dyn Error>> {
3837
let mut files = Vec::new();
3938

rust/ruby-rbs/build.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,9 @@ fn main() -> Result<(), Box<dyn Error>> {
5454
let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
5555
let config_path = manifest_dir.join("vendor/rbs/config.yml");
5656

57-
let config_path = config_path.canonicalize().map_err(|e| {
58-
format!(
59-
"Failed to find config.yml at {:?}: {}",
60-
config_path, e
61-
)
62-
})?;
57+
let config_path = config_path
58+
.canonicalize()
59+
.map_err(|e| format!("Failed to find config.yml at {:?}: {}", config_path, e))?;
6360

6461
println!("cargo:rerun-if-changed={}", config_path.display());
6562

0 commit comments

Comments
 (0)