The headless browser for AI agents and web scraping
fix: clear release build warnings (#1567)
SGavrl66da859807c3
diff --git a/crates/obscura-cdp/src/server.rs b/crates/obscura-cdp/src/server.rsindex 9b3739c9..d7fefde7 100644--- a/crates/obscura-cdp/src/server.rs+++ b/crates/obscura-cdp/src/server.rs@@ -681,6 +681,8 @@ pub async fn start_with_serve_options_limit_and_ready_file(// Reserve a slot before spawning. `fetch_update` (rather than a load// then a store) keeps the check atomic against the accept thread// handing off the next stream concurrently.+ // Retain the established API for compiler compatibility.+ #[allow(deprecated)]let reserved = live_connections.fetch_update(Ordering::AcqRel, Ordering::Acquire, |n| {(n < max_connections).then_some(n + 1)@@ -852,6 +854,7 @@ fn release_connection_memory(idle: bool) {}}+#[allow(deprecated)]fn claim_connection_memory_trim(last_trim: &AtomicU64, now: u64, idle: bool) -> bool {const BUSY_TRIM_INTERVAL_MS: u64 = 5_000;// Claim the interval atomically; a delayed closer cannot roll its timestamp back.diff --git a/crates/obscura-render/src/paint.rs b/crates/obscura-render/src/paint.rsindex acc2c011..abcacebd 100644--- a/crates/obscura-render/src/paint.rs+++ b/crates/obscura-render/src/paint.rs@@ -7689,19 +7689,6 @@ fn fetch_bytes_with_kind(cache.get_or_load(&resolved, is_font)}-fn fetch_profiled_image_bytes(- src: &str,- base_url: Option<&str>,- cache: &mut RenderResourceCache,- profile: ImageRequestProfile,-) -> Option<Arc<[u8]>> {- if src.starts_with("data:") {- return fetch_bytes(src, base_url, cache);- }- let resolved = resolve_resource_url(src, base_url)?;- cache.get_or_load_image(&resolved, profile)-}-fn resolve_resource_url(src: &str, base_url: Option<&str>) -> Option<String> {if src.starts_with("data:") {return Some(src.to_string());diff --git a/vendor/cosmic-text/src/attrs.rs b/vendor/cosmic-text/src/attrs.rsindex a8473d71..2a4eb698 100644--- a/vendor/cosmic-text/src/attrs.rs+++ b/vendor/cosmic-text/src/attrs.rs@@ -133,7 +133,7 @@ impl FamilyOwned {}}- pub fn as_family(&self) -> Family {+ pub fn as_family(&self) -> Family<'_> {match self {FamilyOwned::Name(name) => Family::Name(name),FamilyOwned::Serif => Family::Serif,@@ -626,7 +626,7 @@ impl AttrsOwned {}}- pub fn as_attrs(&self) -> Attrs {+ pub fn as_attrs(&self) -> Attrs<'_> {Attrs {color_opt: self.color_opt,family: self.family_owned.as_family(),@@ -667,7 +667,7 @@ impl AttrsList {}/// Get the default [Attrs]- pub fn defaults(&self) -> Attrs {+ pub fn defaults(&self) -> Attrs<'_> {self.defaults.as_attrs()}@@ -699,7 +699,7 @@ impl AttrsList {/// Get the attribute span for an index////// This returns a span that contains the index- pub fn get_span(&self, index: usize) -> Attrs {+ pub fn get_span(&self, index: usize) -> Attrs<'_> {self.spans.get(&index).map(|v| v.as_attrs())diff --git a/vendor/cosmic-text/src/buffer.rs b/vendor/cosmic-text/src/buffer.rsindex 0292e6bd..32bafcf2 100644--- a/vendor/cosmic-text/src/buffer.rs+++ b/vendor/cosmic-text/src/buffer.rs@@ -865,7 +865,7 @@ impl Buffer {}/// Get the visible layout runs for rendering and other tasks- pub fn layout_runs(&self) -> LayoutRunIter {+ pub fn layout_runs(&self) -> LayoutRunIter<'_> {LayoutRunIter::new(self)}