mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
fix clippy
This commit is contained in:
@@ -71,7 +71,7 @@ impl Texture3D {
|
||||
self.gl.generate_mipmap(WebGlRenderingCtx::TEXTURE_3D);
|
||||
}
|
||||
|
||||
pub fn bind(&self) -> Texture3DBound {
|
||||
pub fn bind(&self) -> Texture3DBound<'_> {
|
||||
self.gl
|
||||
.bind_texture(WebGlRenderingCtx::TEXTURE_3D, self.texture.as_ref());
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ impl Texture2DArray {
|
||||
self.gl.generate_mipmap(WebGlRenderingCtx::TEXTURE_2D_ARRAY);
|
||||
}
|
||||
|
||||
pub fn bind(&self) -> Texture2DArrayBound {
|
||||
pub fn bind(&self) -> Texture2DArrayBound<'_> {
|
||||
self.gl
|
||||
.bind_texture(WebGlRenderingCtx::TEXTURE_2D_ARRAY, self.texture.as_ref());
|
||||
|
||||
|
||||
@@ -295,7 +295,7 @@ impl Texture2D {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn bind(&self) -> Texture2DBound {
|
||||
pub fn bind(&self) -> Texture2DBound<'_> {
|
||||
self.gl
|
||||
.bind_texture(WebGlRenderingCtx::TEXTURE_2D, self.texture.as_ref());
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ export class Location extends DOMElement {
|
||||
|
||||
ALEvent.FRAME_CHANGED.listenedBy(aladin.aladinDiv, function (e) {
|
||||
let [ra, dec] = aladin.getRaDec();
|
||||
let frame = e.detail.cooFrame;
|
||||
let frame = aladin.getFrame();
|
||||
|
||||
self.update({
|
||||
ra, dec,
|
||||
|
||||
Reference in New Issue
Block a user