mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Fix compile warnings
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user