Skip to content

Commit

Permalink
fmt, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 8, 2025
1 parent 9d4ce39 commit a897c07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 2 additions & 4 deletions platform/rust/build.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use std::collections::HashSet;
use std::env;
use std::fs;
use std::path::{Path, PathBuf};
use walkdir::WalkDir;
use std::{env, fs};

use build_support::parse_deps;
use walkdir::WalkDir;

/// Helper that returns a new cmake::Config with common settings.
/// It selects the renderer based on Cargo features: the user must enable exactly one of:
Expand Down
5 changes: 3 additions & 2 deletions platform/rust/build_support/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::collections::HashSet;
use std::path::{Path, PathBuf};
use std::path::Path;

/// Parses the contents of mbgl-core-deps.txt and returns Cargo linker instructions.
///
Expand Down Expand Up @@ -51,9 +51,10 @@ pub fn parse_deps(deps_contents: &str, static_lib_base: &Path) -> Vec<String> {

#[cfg(test)]
mod tests {
use super::*;
use std::path::PathBuf;

use super::*;

#[test]
fn test_parse_deps() {
// Simulate a deps file with:
Expand Down
3 changes: 2 additions & 1 deletion platform/rust/src/bin/render.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::fs;

use clap::Parser;
use maplibre_native::MapRenderer;
use std::fs;

/// MapLibre Native render tool
#[derive(Parser, Debug)]
Expand Down

0 comments on commit a897c07

Please sign in to comment.