diff options
Diffstat (limited to 'components/net')
-rw-r--r-- | components/net/cookie.rs | 1 | ||||
-rw-r--r-- | components/net/image_cache.rs | 18 |
2 files changed, 10 insertions, 9 deletions
diff --git a/components/net/cookie.rs b/components/net/cookie.rs index 34d327673f3..3d2cf61fab3 100644 --- a/components/net/cookie.rs +++ b/components/net/cookie.rs @@ -206,6 +206,7 @@ impl ServoCookie { // 3. The cookie-attribute-list contains an attribute with an attribute-name of "Path", // and the cookie's path is /. + #[allow(clippy::nonminimal_bool)] if !has_path_specified || !cookie.path().is_some_and(|path| path == "/") { return None; } diff --git a/components/net/image_cache.rs b/components/net/image_cache.rs index 71e41ab59e2..e81b0026ece 100644 --- a/components/net/image_cache.rs +++ b/components/net/image_cache.rs @@ -25,15 +25,15 @@ use webrender_traits::{CrossProcessCompositorApi, SerializableImageData}; use crate::resource_thread::CoreResourceThreadPool; -/// -/// TODO(gw): Remaining work on image cache: -/// * Make use of the prefetch support in various parts of the code. -/// * Profile time in GetImageIfAvailable - might be worth caching these -/// results per paint / layout. -/// -/// MAYBE(Yoric): -/// * For faster lookups, it might be useful to store the LoadKey in the -/// DOM once we have performed a first load. +// +// TODO(gw): Remaining work on image cache: +// * Make use of the prefetch support in various parts of the code. +// * Profile time in GetImageIfAvailable - might be worth caching these +// results per paint / layout. +// +// MAYBE(Yoric): +// * For faster lookups, it might be useful to store the LoadKey in the +// DOM once we have performed a first load. // ====================================================================== // Helper functions. |