aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/reporter.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-06-16 05:03:18 -0700
committerGitHub <noreply@github.com>2017-06-16 05:03:18 -0700
commit66c130d55aa0d7af1104c00e93a5bf950f23a383 (patch)
tree6896ae8b01e5d3dd26c97c11950fcd61acd4b883 /components/script_layout_interface/reporter.rs
parente1bce241291683ee61abab042d0c808ae5396e91 (diff)
parent605ef8b7ecd31aead8c29dcc034bcf1e4f3c73c7 (diff)
downloadservo-66c130d55aa0d7af1104c00e93a5bf950f23a383.tar.gz
servo-66c130d55aa0d7af1104c00e93a5bf950f23a383.zip
Auto merge of #17355 - servo:serdeup, r=nox
Bump serde to 1.0 This is a rebase of #17325 with `[replace]` entries removed, a bunch more dependencies updated, and some more compile fixes. Original work by @Eijebong, thanks a lot! <!-- 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/17355) <!-- Reviewable:end -->
Diffstat (limited to 'components/script_layout_interface/reporter.rs')
-rw-r--r--components/script_layout_interface/reporter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_layout_interface/reporter.rs b/components/script_layout_interface/reporter.rs
index 432b6a0b037..ec3dfae91a9 100644
--- a/components/script_layout_interface/reporter.rs
+++ b/components/script_layout_interface/reporter.rs
@@ -29,7 +29,7 @@ impl ParseErrorReporter for CSSErrorReporter {
url: &ServoUrl,
line_number_offset: u64) {
let location = input.source_location(position);
- let line_offset = location.line + line_number_offset as usize;
+ let line_offset = location.line + line_number_offset as u32;
if log_enabled!(log::LogLevel::Info) {
info!("Url:\t{}\n{}:{} {}",
url.as_str(),