diff --git a/.github/files/markdown.links.config.json b/.github/files/markdown.links.config.json index eaff6f07c..f89e0570a 100644 --- a/.github/files/markdown.links.config.json +++ b/.github/files/markdown.links.config.json @@ -6,7 +6,7 @@ "replacement": "" } ], - "timeout": "2s", + "timeout": "3s", "retryOn429": true, "ignorePatterns": [ { diff --git a/martin/build.rs b/martin/build.rs index 235ca0f5c..b463a8c93 100644 --- a/martin/build.rs +++ b/martin/build.rs @@ -78,7 +78,7 @@ fn webui() { &["dist", "node_modules"], ); - println!("installing and building in {out_martin_ui_dir:?}"); + println!("installing and building in {}", out_martin_ui_dir.display()); static_files::NpmBuild::new(&out_martin_ui_dir) .install() .expect("npm install failed") diff --git a/martin/src/bin/martin-cp.rs b/martin/src/bin/martin-cp.rs index 91b030758..e739386a7 100644 --- a/martin/src/bin/martin-cp.rs +++ b/martin/src/bin/martin-cp.rs @@ -187,7 +187,7 @@ fn compute_tile_ranges(args: &CopyArgs) -> Vec { ranges } -fn get_zooms(args: &CopyArgs) -> Cow> { +fn get_zooms(args: &CopyArgs) -> Cow<[u8]> { if let Some(max_zoom) = args.max_zoom { let mut zooms_vec = Vec::new(); let min_zoom = args.min_zoom.unwrap_or(0); diff --git a/martin/src/srv/styles.rs b/martin/src/srv/styles.rs index 0db7f9908..6e32c2cde 100644 --- a/martin/src/srv/styles.rs +++ b/martin/src/srv/styles.rs @@ -33,7 +33,10 @@ async fn get_style_json(path: Path, styles: Data) -> match serde_json::from_str::(&style_content) { Ok(value) => HttpResponse::Ok().json(value), Err(e) => { - error!("Failed to parse style JSON {e:?} for style {style_id} at {path:?}"); + error!( + "Failed to parse style JSON {e:?} for style {style_id} at {:?}", + path.display() + ); HttpResponse::BadRequest() .content_type(ContentType::plaintext()) diff --git a/martin/src/styles/mod.rs b/martin/src/styles/mod.rs index 132fa43e3..9cc0b9f90 100644 --- a/martin/src/styles/mod.rs +++ b/martin/src/styles/mod.rs @@ -63,12 +63,18 @@ impl StyleSources { for base_path in cfg.paths { let files = list_contained_files(&base_path, "json")?; if files.is_empty() { - warn!("No styles (.json files) found in path {base_path:?}"); + warn!( + "No styles (.json files) found in path {:?}", + base_path.display() + ); continue; } for path in files { let Some(name) = path.file_name() else { - warn!("Ignoring style source with no name from {path:?}"); + warn!( + "Ignoring style source with no name from {:?}", + path.display() + ); continue; }; let style_id = name