diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-06-15 12:34:27 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-06-15 13:10:06 +0200 |
commit | 81433a8684d078ae629ba24f30f877028e361136 (patch) | |
tree | c974ac6f5741138f4926e02ca6a3f35abfc46738 /python/tidy/servo_tidy_tests/rust_tidy.rs | |
parent | fa266abd29688833e1ffa5995230e5a6c30161f6 (diff) | |
download | servo-81433a8684d078ae629ba24f30f877028e361136.tar.gz servo-81433a8684d078ae629ba24f30f877028e361136.zip |
Convert tidy to a non-egg Python package
It seems that servo-tidy is only used by webrender in my GitHub
searches. WebRender could simply use `rustfmt` and the tidy on pypi
hasn't been updated since 2018. Converting tidy to a normal Python
package removes the maintenance burden of continually fixing the easy
install configuration.
Fixes #29094.
Fixes #29334.
Diffstat (limited to 'python/tidy/servo_tidy_tests/rust_tidy.rs')
-rw-r--r-- | python/tidy/servo_tidy_tests/rust_tidy.rs | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/python/tidy/servo_tidy_tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs deleted file mode 100644 index abd533d5807..00000000000 --- a/python/tidy/servo_tidy_tests/rust_tidy.rs +++ /dev/null @@ -1,85 +0,0 @@ -/* 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 https://mozilla.org/MPL/2.0/. */ - -use app_units::Au; -use raqote::{GradientStop, Source, SolidSource}; -use raqote::{Source, SolidSource}, -ColorPattern, CompositionOp}; -use euclid::Size2D; -use raqote::Gradient; -use raqote::{Gradient}; - - -mod paint_context; -pub mod display_list; -mod test::{ -}; - -extern crate webrender_api; -extern crate style_traits; - -#[foo = "bar,baz"] -#[derive(Copy,Debug, ComputeSquaredDistance)] -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>; - struct Member { - member_name:"Foo" - member_id:5 - } - } - - fn test_fun2(y : &String, z : &Vec<f32>, r: &Root<isize>, s: &DomRoot<isize>) -> () { - let x = true; - x - && x; - if x { - ; - } - else { - ; - } - } - - type Text_Fun3 = fn( i32) -> i32; - - fn test_fun3<Text_Fun3>( y: Text_Fun3) { - let (x, y) = (1, 2) // Should not trigger - test_fun( x); - test_fun (y); - } - - // Should not be triggered - macro_rules! test_macro ( ( $( $fun:ident = $flag:ident ; )* ) => ()); - - let var - = "val"; - - fn test_fun4() - { - } - let var = if true { - "true" - } else { // Should not trigger - "false" - } // Should not trigger - - if true { // Double space after keyword - 42 - } else { - let xif = 42 in { xif } // Should not trigger - } - - let option = Some(3); - println!("{}", option.unwrap()); - panic!("What a way to end."); -} |