Fix warnings.

This commit is contained in:
Josh Matthews 2022-01-03 13:05:19 -05:00
parent e87bbb093a
commit 08ff81b09a
4 changed files with 5 additions and 7 deletions

View file

@ -6,13 +6,13 @@ use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
#[derive(Clone, Debug)]
pub struct FontContextHandle {
ctx: (),
_ctx: (),
}
impl FontContextHandle {
// this is a placeholder until NSFontManager or whatever is bound in here.
pub fn new() -> FontContextHandle {
FontContextHandle { ctx: () }
FontContextHandle { _ctx: () }
}
}

View file

@ -12,8 +12,6 @@ use crate::subresource_integrity::is_response_integrity_valid;
use content_security_policy as csp;
use crossbeam_channel::Sender;
use devtools_traits::DevtoolsControlMsg;
use futures_util::compat::*;
use futures_util::StreamExt;
use headers::{AccessControlExposeHeaders, ContentType, HeaderMapExt, Range};
use http::header::{self, HeaderMap, HeaderName};
use hyper::Method;

View file

@ -57,7 +57,7 @@ struct FileStoreEntry {
struct FileMetaData {
path: PathBuf,
/// Modified time in UNIX Epoch format
modified: u64,
_modified: u64,
size: u64,
}
@ -660,7 +660,7 @@ impl FileManagerStore {
let file_impl = FileImpl::MetaDataOnly(FileMetaData {
path: file_path.to_path_buf(),
modified: modified_epoch,
_modified: modified_epoch,
size: file_size,
});

View file

@ -523,7 +523,7 @@ async fn obtain_response(
.replace("}", "%7D");
let request = if let Some(chunk_requester) = body {
let (mut sink, stream) = if source_is_null {
let (sink, stream) = if source_is_null {
// Step 4.2 of https://fetch.spec.whatwg.org/#concept-http-network-fetch
// TODO: this should not be set for HTTP/2(currently not supported?).
headers.insert(TRANSFER_ENCODING, HeaderValue::from_static("chunked"));