Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Nov 30, 2023
1 parent e53b38e commit 09b8c24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion geo-file-loader/src/gpx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ impl crate::FileLoader for GpxSource {
Ok(geo_features::FeatureCollection::from_geometry(geometry))
}
}

3 changes: 1 addition & 2 deletions geo-file-loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ mod shapefile;
mod wkt;

pub use crate::geojson::GeoJsonSource;
pub use crate::gpx::GpxSource;
pub use crate::shapefile::ShapefileSource;
pub use crate::wkt::WktSource;
pub use crate::gpx::GpxSource;

#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub enum FileFormat {
Expand All @@ -24,7 +24,6 @@ pub enum FileFormat {
Gpx,
}


#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("{0}")]
Expand Down
7 changes: 4 additions & 3 deletions rgis-file-loader/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ impl bevy_jobs::Job for LoadFileJob {
fn perform(self, _: bevy_jobs::Context) -> bevy_jobs::AsyncReturn<Self::Outcome> {
Box::pin(async move {
Ok(LoadFileJobOutcome {
feature_collection: geo_projected::Unprojected::new(
geo_file_loader::load_file(self.file_format, self.bytes)?,
),
feature_collection: geo_projected::Unprojected::new(geo_file_loader::load_file(
self.file_format,
self.bytes,
)?),
name: self.name,
source_crs_epsg_code: self.source_crs_epsg_code,
})
Expand Down

0 comments on commit 09b8c24

Please sign in to comment.