Fix compile warnings

This commit is contained in:
Delan Azabani
2024-03-21 16:15:30 +08:00
parent 0457e2add3
commit 4e5f6c79f4
5 changed files with 2 additions and 14 deletions

View File

@@ -110,11 +110,6 @@ impl FrameTreeId {
}
}
struct RootPipeline {
top_level_browsing_context_id: TopLevelBrowsingContextId,
id: Option<PipelineId>,
}
/// NB: Never block on the constellation, because sometimes the constellation blocks on us.
pub struct IOCompositor<Window: WindowMethods + ?Sized> {
/// The application window.

View File

@@ -77,7 +77,7 @@ impl<WebView> WebViewManager<WebView> {
pub fn painting_order(&self) -> impl Iterator<Item = (&TopLevelBrowsingContextId, &WebView)> {
self.painting_order
.iter()
.flat_map(move |webview_id| self.webviews.get(webview_id).map(|b| (webview_id, b)))
.flat_map(move |webview_id| self.get(*webview_id).map(|b| (webview_id, b)))
}
}

View File

@@ -8,7 +8,6 @@ use std::cell::{Cell, RefCell};
use std::collections::HashMap;
use std::rc::Rc;
use euclid::num::Zero;
use euclid::{Angle, Length, Point2D, Rotation3D, Scale, Size2D, UnknownUnit, Vector2D, Vector3D};
use log::{debug, info, trace};
use raw_window_handle::{HasRawDisplayHandle, HasRawWindowHandle};

View File

@@ -10,7 +10,7 @@ use std::time::Instant;
use egui::{CentralPanel, Frame, Key, Modifiers, PaintCallback, Pos2, TopBottomPanel, Vec2};
use egui_glow::CallbackFn;
use egui_winit::EventResponse;
use euclid::{Box2D, Length, Point2D, Rect, Scale, Size2D};
use euclid::{Box2D, Length, Point2D, Scale, Size2D};
use gleam::gl;
use glow::NativeFramebuffer;
use log::{trace, warn};

View File

@@ -118,12 +118,6 @@ where
self.focused_webview_id.clone()
}
pub fn painting_order(&self) -> impl Iterator<Item = (&WebViewId, &WebView)> {
self.painting_order
.iter()
.flat_map(move |webview_id| self.webviews.get(webview_id).map(|b| (webview_id, b)))
}
pub fn current_url_string(&self) -> Option<&str> {
self.current_url_string.as_deref()
}