diff --git a/src/core/src/downloader/query.rs b/src/core/src/downloader/query.rs index 5f800fbd..002baa2e 100644 --- a/src/core/src/downloader/query.rs +++ b/src/core/src/downloader/query.rs @@ -82,7 +82,11 @@ use crate::renderable::CreatorDid; use crate::tile_fetcher::HiPSLocalFiles; use web_sys::{RequestCredentials, RequestMode}; impl Tile { - pub fn new(cell: &HEALPixCell, cfg: &HiPSConfig, browser_support: &BrowserFeaturesSupport) -> Self { + pub fn new( + cell: &HEALPixCell, + cfg: &HiPSConfig, + browser_support: &BrowserFeaturesSupport, + ) -> Self { let hips_cdid = cfg.get_creator_did(); let hips_url = cfg.get_root_url(); let format = cfg.get_format(); @@ -115,7 +119,12 @@ impl Tile { } } - pub fn new_with_channel(cell: &HEALPixCell, channel: u32, cfg: &HiPSConfig, browser_support: &BrowserFeaturesSupport) -> Self { + pub fn new_with_channel( + cell: &HEALPixCell, + channel: u32, + cfg: &HiPSConfig, + browser_support: &BrowserFeaturesSupport, + ) -> Self { let hips_cdid = cfg.get_creator_did(); let hips_url = cfg.get_root_url(); let format = cfg.get_format(); @@ -149,7 +158,11 @@ impl Tile { } } - pub fn new_cubic(hpx_f_cell: &HEALPixFreqCell, cfg: &HiPSConfig, browser_support: &BrowserFeaturesSupport) -> Self { + pub fn new_cubic( + hpx_f_cell: &HEALPixFreqCell, + cfg: &HiPSConfig, + browser_support: &BrowserFeaturesSupport, + ) -> Self { let hips_cdid = cfg.get_creator_did(); let hips_url = cfg.get_root_url(); let format = cfg.get_format(); diff --git a/src/core/src/downloader/request/allsky.rs b/src/core/src/downloader/request/allsky.rs index ef73a002..e5b0ceff 100644 --- a/src/core/src/downloader/request/allsky.rs +++ b/src/core/src/downloader/request/allsky.rs @@ -320,5 +320,4 @@ fn handle_allsky_fits( use al_core::texture::format::RGBA8U; - use crate::Abort; diff --git a/src/core/src/downloader/request/moc.rs b/src/core/src/downloader/request/moc.rs index 3d59cdc2..702583d5 100644 --- a/src/core/src/downloader/request/moc.rs +++ b/src/core/src/downloader/request/moc.rs @@ -80,4 +80,3 @@ impl From for MOCRequest { } } } - diff --git a/src/core/src/healpix/moc/space.rs b/src/core/src/healpix/moc/space.rs index a42635b1..a57b61ed 100644 --- a/src/core/src/healpix/moc/space.rs +++ b/src/core/src/healpix/moc/space.rs @@ -1,6 +1,6 @@ +use crate::math::lonlat::LonLat; use crate::math::lonlat::LonLatT; use crate::math::PI; -use crate::math::{lonlat::LonLat}; use moclib::moc::RangeMOCIntoIterator; use moclib::{ diff --git a/src/core/src/renderable/hips/d2/mod.rs b/src/core/src/renderable/hips/d2/mod.rs index 3dec8d20..0d169855 100644 --- a/src/core/src/renderable/hips/d2/mod.rs +++ b/src/core/src/renderable/hips/d2/mod.rs @@ -332,7 +332,7 @@ impl HiPS2D { &mut self, tile_fetcher: &mut TileFetcherQueue, camera: &CameraViewPort, - browser_features_support: &BrowserFeaturesSupport + browser_features_support: &BrowserFeaturesSupport, ) { // do not add tiles if the view is already at depth 0 let cfg = self.get_config(); @@ -355,7 +355,11 @@ impl HiPS2D { }; if make_query { - Some(query::Tile::new(&tile_cell, self.get_config(), browser_features_support)) + Some(query::Tile::new( + &tile_cell, + self.get_config(), + browser_features_support, + )) } else { None } @@ -385,7 +389,11 @@ impl HiPS2D { for ancestor in ancestors { if !self.update_priority_tile(&ancestor) { - tile_fetcher.append(query::Tile::new(&ancestor, self.get_config(), browser_features_support)); + tile_fetcher.append(query::Tile::new( + &ancestor, + self.get_config(), + browser_features_support, + )); } } } diff --git a/src/core/src/renderable/hips/mod.rs b/src/core/src/renderable/hips/mod.rs index e11a6c52..d89e2ada 100644 --- a/src/core/src/renderable/hips/mod.rs +++ b/src/core/src/renderable/hips/mod.rs @@ -67,7 +67,7 @@ impl HiPS { &mut self, tile_fetcher: &mut TileFetcherQueue, camera: &CameraViewPort, - browser_features_support: &BrowserFeaturesSupport + browser_features_support: &BrowserFeaturesSupport, ) { match self { D2(hips) => hips.look_for_new_tiles(tile_fetcher, camera, browser_features_support),