Auto merge of #21614 - pyfisch:layout_traits-fmt, r=nox

Rustfmt layout_traits crate

Part of #21373. This is a small PR, just one function is formatted as the layout_traits crate contains only this one trait.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21614)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-09-05 07:26:29 -04:00 committed by GitHub
commit 9070d4bc65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,8 @@ use std::sync::mpsc::{Receiver, Sender};
// Here to remove the compositor -> layout dependency // Here to remove the compositor -> layout dependency
pub trait LayoutThreadFactory { pub trait LayoutThreadFactory {
type Message; type Message;
fn create(id: PipelineId, fn create(
id: PipelineId,
top_level_browsing_context_id: TopLevelBrowsingContextId, top_level_browsing_context_id: TopLevelBrowsingContextId,
url: ServoUrl, url: ServoUrl,
is_iframe: bool, is_iframe: bool,
@ -52,5 +53,6 @@ pub trait LayoutThreadFactory {
webrender_api_sender: webrender_api::RenderApiSender, webrender_api_sender: webrender_api::RenderApiSender,
webrender_document: webrender_api::DocumentId, webrender_document: webrender_api::DocumentId,
layout_threads: usize, layout_threads: usize,
paint_time_metrics: PaintTimeMetrics); paint_time_metrics: PaintTimeMetrics,
);
} }