aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorMichael Droettboom <mdboom@gmail.com>2017-09-18 16:08:55 -0400
committerMichael Droettboom <mdboom@gmail.com>2017-09-21 17:17:47 -0400
commitc9dafda03a4a143f4626726df7562077a7cdd64f (patch)
treedbe9ca3bbec26664ba3b93cb5c4e42493fffc024 /components
parent5c797d194346d5be3c55da51d82bfcd1031a51f5 (diff)
downloadservo-c9dafda03a4a143f4626726df7562077a7cdd64f.tar.gz
servo-c9dafda03a4a143f4626726df7562077a7cdd64f.zip
Make tidy aware of Rust multiline strings
As a result of tighter and more correct handling of character literals, this now catches a few kinds of syntax involving lifetimes that were previously missed, so those have been updated.
Diffstat (limited to 'components')
-rw-r--r--components/layout/generated_content.rs4
-rw-r--r--components/layout/persistent_list.rs2
-rw-r--r--components/script_plugins/unrooted_must_root.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/generated_content.rs b/components/layout/generated_content.rs
index d9adfabb832..3f9d314fa19 100644
--- a/components/layout/generated_content.rs
+++ b/components/layout/generated_content.rs
@@ -137,7 +137,7 @@ impl<'a> InorderFlowTraversal for ResolveGeneratedContent<'a> {
}
/// The object that mutates the generated content fragments.
-struct ResolveGeneratedContentFragmentMutator<'a,'b:'a> {
+struct ResolveGeneratedContentFragmentMutator<'a, 'b: 'a> {
/// The traversal.
traversal: &'a mut ResolveGeneratedContent<'b>,
/// The level we're at in the flow tree.
@@ -148,7 +148,7 @@ struct ResolveGeneratedContentFragmentMutator<'a,'b:'a> {
incremented: bool,
}
-impl<'a,'b> ResolveGeneratedContentFragmentMutator<'a,'b> {
+impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
fn mutate_fragment(&mut self, fragment: &mut Fragment) {
// We only reset and/or increment counters once per flow. This avoids double-incrementing
// counters on list items (once for the main fragment and once for the marker).
diff --git a/components/layout/persistent_list.rs b/components/layout/persistent_list.rs
index 210606f1d5d..e331550be60 100644
--- a/components/layout/persistent_list.rs
+++ b/components/layout/persistent_list.rs
@@ -69,7 +69,7 @@ impl<T> Clone for PersistentList<T> where T: Send + Sync {
}
}
-pub struct PersistentListIterator<'a,T> where T: 'a + Send + Sync {
+pub struct PersistentListIterator<'a, T> where T: 'a + Send + Sync {
entry: Option<&'a PersistentListEntry<T>>,
}
diff --git a/components/script_plugins/unrooted_must_root.rs b/components/script_plugins/unrooted_must_root.rs
index f3f5e60ab62..b0b409862c5 100644
--- a/components/script_plugins/unrooted_must_root.rs
+++ b/components/script_plugins/unrooted_must_root.rs
@@ -163,7 +163,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
}
}
-struct FnDefVisitor<'a, 'b: 'a, 'tcx: 'a+'b> {
+struct FnDefVisitor<'a, 'b: 'a, 'tcx: 'a + 'b> {
cx: &'a LateContext<'b, 'tcx>,
in_new_function: bool,
}