mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix warnings.
This commit is contained in:
parent
e87bbb093a
commit
08ff81b09a
4 changed files with 5 additions and 7 deletions
|
@ -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: () }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue