aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/rust_tidy.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-15 23:20:16 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-15 23:20:16 +0530
commitbfe54539d290cb287e59e8ba106a54a3fab6201a (patch)
treee1f8e2ebac52bd4a1f234c4452bebf9e379344b0 /python/tidy/servo_tidy_tests/rust_tidy.rs
parenta96b98f85b2e4dce88a48c844d251546ada8afdf (diff)
parentee433a030c306990f14a0dbbf91f1d4bf5e3003c (diff)
downloadservo-bfe54539d290cb287e59e8ba106a54a3fab6201a.tar.gz
servo-bfe54539d290cb287e59e8ba106a54a3fab6201a.zip
Auto merge of #10590 - edunham:package-tidy, r=larsbergstrom
Package tidy This fixes https://github.com/servo/servo/issues/861. @askeing, I've copied your work from https://github.com/askeing/servo_tidy and attributed the commit to you. My commit in this PR is Git housekeeping to preserve `tidy`'s history. If you'd like to make additional changes, I've given you and @shinglyu push access to my fork of Servo. Apologies if this is already familiar, but the workflow for pushing to my branch is: ``` $ git remote add edunham git@github.com:edunham/servo.git $ git checkout -b package-tidy $ git pull edunham package-tidy $ git push edunham package-tidy ``` Once this lands, I'll look at how to publish it to PyPI and automate that process. Please don't merge this yet; we still need to discuss how the change should work around https://github.com/servo/servo/blob/master/python/servo/testing_commands.py#L33 , as I've yet to figure out how to get the egg to actually expose its tests. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10590) <!-- Reviewable:end -->
Diffstat (limited to 'python/tidy/servo_tidy_tests/rust_tidy.rs')
-rw-r--r--python/tidy/servo_tidy_tests/rust_tidy.rs37
1 files changed, 37 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs
new file mode 100644
index 00000000000..680b527f679
--- /dev/null
+++ b/python/tidy/servo_tidy_tests/rust_tidy.rs
@@ -0,0 +1,37 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+use app_units::Au;
+use azure::azure_hl::{AntialiasMode, Color,
+ColorPattern, CompositionOp};
+use euclid::size::Size2D;
+use azure::azure::AzIntSize;
+
+use std;
+
+mod paint_context;
+pub mod display_list;
+mod test::{
+};
+
+extern crate webrender_traits;
+extern crate style_traits;
+
+impl test {
+
+ fn test_fun(y:f32)->f32{
+ let x=5;
+ x = x-1;
+ x = x*x;
+ let z = match y {
+ 1 =>2,
+ 2 => 1,
+ };
+ let z = &Vec<T>;
+ }
+
+ fn test_fun2(y : &String, z : &Vec<f32>) -> f32 {
+ 1
+ }
+}