mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Run cargo format
This commit is contained in:
parent
d18f3ee8a4
commit
c0800fd644
@ -1,6 +1,5 @@
|
||||
//! File which exposes all kinds of coordinates used throughout mapr
|
||||
|
||||
|
||||
use crate::util::math::{div_floor, Aabb2};
|
||||
use cgmath::num_traits::Pow;
|
||||
use cgmath::{Matrix4, Point3, Vector3};
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
use super::UpdateState;
|
||||
|
||||
|
||||
use crate::render::render_state::RenderState;
|
||||
use cgmath::num_traits::Pow;
|
||||
use cgmath::{Vector2, Vector3, Zero};
|
||||
@ -60,7 +59,11 @@ impl ZoomHandler {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn process_window_position(&mut self, window_position: &Vector2<f64>, _touch: bool) -> bool {
|
||||
pub fn process_window_position(
|
||||
&mut self,
|
||||
window_position: &Vector2<f64>,
|
||||
_touch: bool,
|
||||
) -> bool {
|
||||
self.window_position = Some(*window_position);
|
||||
true
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
//! Handles IO related processing as well as multithreading.
|
||||
|
||||
use crate::coords::{WorldTileCoords};
|
||||
use crate::coords::WorldTileCoords;
|
||||
|
||||
use crate::render::ShaderVertex;
|
||||
use crate::tessellation::{IndexDataType, OverAlignedVertexBuffer};
|
||||
|
||||
@ -9,14 +9,12 @@ use log::{info, warn};
|
||||
use style_spec::source::TileAdressingScheme;
|
||||
use vector_tile::parse_tile_bytes;
|
||||
|
||||
|
||||
/// Describes through which channels work-requests travel. It describes the flow of work.
|
||||
use crate::coords::{TileCoords, WorldTileCoords};
|
||||
use crate::io::tile_cache::TileCache;
|
||||
use crate::io::{LayerResult, TileRequest, TileRequestID, TileResult};
|
||||
|
||||
|
||||
use crate::tessellation::{Tessellated};
|
||||
use crate::tessellation::Tessellated;
|
||||
|
||||
pub enum ScheduleMethod {
|
||||
#[cfg(not(any(
|
||||
|
||||
@ -6,7 +6,6 @@ use crate::platform::TokioScheduleMethod;
|
||||
|
||||
pub use std::time::Instant;
|
||||
|
||||
|
||||
use winit::event_loop::EventLoop;
|
||||
use winit::window::WindowBuilder;
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ use reqwest_middleware_cache::{Cache, CacheMode};
|
||||
|
||||
use crate::error::Error;
|
||||
use crate::io::scheduler::IOScheduler;
|
||||
use crate::io::{TileRequestID};
|
||||
use crate::io::TileRequestID;
|
||||
|
||||
impl From<reqwest::Error> for Error {
|
||||
fn from(err: reqwest::Error) -> Self {
|
||||
|
||||
@ -7,7 +7,7 @@ use std::ops::Range;
|
||||
|
||||
use wgpu::BufferAddress;
|
||||
|
||||
use crate::coords::{WorldTileCoords};
|
||||
use crate::coords::WorldTileCoords;
|
||||
|
||||
use crate::tessellation::OverAlignedVertexBuffer;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use std::ops::Add;
|
||||
|
||||
use bytemuck::Pod;
|
||||
use lyon::geom::{point};
|
||||
use lyon::geom::point;
|
||||
|
||||
use lyon::lyon_tessellation::VertexBuffers;
|
||||
use lyon::tessellation::geometry_builder::MaxIndex;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user