diff options
author | edunham <edunham@mozilla.com> | 2016-04-13 15:56:16 -0700 |
---|---|---|
committer | edunham <edunham@mozilla.com> | 2016-04-13 15:56:16 -0700 |
commit | 711bfe2860a308acc12a7c0437b9832d3d454c1f (patch) | |
tree | 13037df1c7f4ecb56d320f411d77263718ade2e3 /python/tidy/tidy_self_test/rust_tidy.rs | |
parent | 697300bb16ae2fc27e0ac507210f65de4254f33d (diff) | |
download | servo-711bfe2860a308acc12a7c0437b9832d3d454c1f.tar.gz servo-711bfe2860a308acc12a7c0437b9832d3d454c1f.zip |
start Tidy move
Diffstat (limited to 'python/tidy/tidy_self_test/rust_tidy.rs')
-rw-r--r-- | python/tidy/tidy_self_test/rust_tidy.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/python/tidy/tidy_self_test/rust_tidy.rs b/python/tidy/tidy_self_test/rust_tidy.rs new file mode 100644 index 00000000000..680b527f679 --- /dev/null +++ b/python/tidy/tidy_self_test/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 + } +} |