Skip to content

Commit c3f7e8d

Browse files
Change Rust prelude to bring in traits as _
We already renamed many of these to avoid collisions with names like `AsMut` to be `ProtoAsMut`, I think its even better to throw away the name to only bring in the traits for people to be able to use the behavior. PiperOrigin-RevId: 805477478
1 parent b64e6c4 commit c3f7e8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎rust/prelude.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
//! `protobuf::` crate instead.
1818
1919
pub use crate::{
20-
proto, AsMut as ProtoAsMut, AsView as ProtoAsView, Clear as ProtoClear,
21-
ClearAndParse as ProtoClearAndParse, CopyFrom as ProtoCopyFrom, IntoMut as ProtoIntoMut,
22-
IntoView as ProtoIntoView, MergeFrom as ProtoMergeFrom, Parse as ProtoParse,
23-
Serialize as ProtoSerialize, TakeFrom as ProtoTakeFrom,
20+
proto, AsMut as _, AsView as _, Clear as _, ClearAndParse as _, CopyFrom as _, IntoMut as _,
21+
IntoView as _, MergeFrom as _, Parse as _, Serialize as _, TakeFrom as _,
2422
};

0 commit comments

Comments
��(0)