From d6ccbc386ea5412a6650eefe76a2dbfa02e7a27e Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Sun, 10 Nov 2024 22:26:35 +0100 Subject: [PATCH] Format --- web/src/lib.rs | 4 +--- web/src/platform/singlethreaded/transferables.rs | 10 ++++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index 23580a0c8..a1f644cb4 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -131,9 +131,7 @@ pub async fn run_maplibre(new_worker: js_sys::Function) -> Result<(), JSError> { vec![ Box::::default(), Box::>::default(), - Box::new(maplibre::sdf::SdfPlugin::< - platform::UsedVectorTransferables, - >::default()), + Box::new(maplibre::sdf::SdfPlugin::::default()), // Box::new(RasterPlugin::::default()), #[cfg(debug_assertions)] Box::::default(), diff --git a/web/src/platform/singlethreaded/transferables.rs b/web/src/platform/singlethreaded/transferables.rs index acf87a394..9b4341da5 100644 --- a/web/src/platform/singlethreaded/transferables.rs +++ b/web/src/platform/singlethreaded/transferables.rs @@ -10,20 +10,22 @@ use maplibre::{ apc::{IntoMessage, Message, MessageTag}, geometry_index::TileIndex, }, - sdf::SymbolLayerData, raster::{ AvailableRasterLayerData, LayerRaster, LayerRasterMissing, MissingRasterLayerData, RasterTransferables, }, - render::{shaders::ShaderSymbolVertex, ShaderVertex}, + render::{ + shaders::{ShaderSymbolVertex, ShaderSymbolVertexNew}, + ShaderVertex, + }, + sdf::{Feature, SymbolLayerData}, tile::Layer, vector::{ AvailableVectorLayerBucket, LayerIndexed, LayerMissing, LayerTessellated, MissingVectorLayerBucket, SymbolLayerTessellated, TileTessellated, VectorTransferables, }, }; -use maplibre::render::shaders::ShaderSymbolVertexNew; -use maplibre::sdf::Feature; + use crate::platform::singlethreaded::{ apc::WebMessageTag, transferables::{