mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-10 01:22:12 +00:00
146 lines
3.2 KiB
Diff
146 lines
3.2 KiB
Diff
https://github.com/stepancheg/rust-protobuf/commit/6069c64ed162edcc4d89e000ef7abf027638548c
|
|
|
|
--- a/src/descriptor.rs
|
|
+++ b/src/descriptor.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/plugin.rs
|
|
+++ b/src/plugin.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/rustproto.rs
|
|
+++ b/src/rustproto.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/any.rs
|
|
+++ b/src/well_known_types/any.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/api.rs
|
|
+++ b/src/well_known_types/api.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/duration.rs
|
|
+++ b/src/well_known_types/duration.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/empty.rs
|
|
+++ b/src/well_known_types/empty.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/field_mask.rs
|
|
+++ b/src/well_known_types/field_mask.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/source_context.rs
|
|
+++ b/src/well_known_types/source_context.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/struct_pb.rs
|
|
+++ b/src/well_known_types/struct_pb.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/timestamp.rs
|
|
+++ b/src/well_known_types/timestamp.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/type_pb.rs
|
|
+++ b/src/well_known_types/type_pb.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|
|
--- a/src/well_known_types/wrappers.rs
|
|
+++ b/src/well_known_types/wrappers.rs
|
|
@@ -7,7 +7,7 @@
|
|
#![allow(clippy::all)]
|
|
|
|
#![allow(unused_attributes)]
|
|
-#![rustfmt::skip]
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
#![allow(box_pointers)]
|
|
#![allow(dead_code)]
|