Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3f7e8d

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 parentb64e6c4 commitc3f7e8d

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
pubusecrate::{
20-
proto,AsMutasProtoAsMut,AsViewasProtoAsView,ClearasProtoClear,
21-
ClearAndParseasProtoClearAndParse,CopyFromasProtoCopyFrom,IntoMutasProtoIntoMut,
22-
IntoViewasProtoIntoView,MergeFromasProtoMergeFrom,ParseasProtoParse,
23-
SerializeasProtoSerialize,TakeFromasProtoTakeFrom,
20+
proto,AsMutas _,AsViewas _,Clearas _,ClearAndParseas _,CopyFromas _,IntoMutas _,
21+
IntoViewas _,MergeFromas _,Parseas _,Serializeas _,TakeFromas _,
2422
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp