Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion rust/ruby-rbs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ fn build(include_dir: &Path, src_dir: &Path) -> Result<(), Box<dyn Error>> {
Ok(())
}


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

Expand Down
9 changes: 3 additions & 6 deletions rust/ruby-rbs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ fn main() -> Result<(), Box<dyn Error>> {
let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
let config_path = manifest_dir.join("vendor/rbs/config.yml");

let config_path = config_path.canonicalize().map_err(|e| {
format!(
"Failed to find config.yml at {:?}: {}",
config_path, e
)
})?;
let config_path = config_path
.canonicalize()
.map_err(|e| format!("Failed to find config.yml at {:?}: {}", config_path, e))?;

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

Expand Down