@@ -1146,7 +1146,7 @@ impl Builder {
1146
1146
/// [`ParseCallbacks`](./callbacks/trait.ParseCallbacks.html) documentation.
1147
1147
pub fn parse_callbacks (
1148
1148
mut self ,
1149
- cb : Box < callbacks:: ParseCallbacks > ,
1149
+ cb : Box < dyn callbacks:: ParseCallbacks > ,
1150
1150
) -> Self {
1151
1151
self . options . parse_callbacks = Some ( cb) ;
1152
1152
self
@@ -1500,7 +1500,7 @@ struct BindgenOptions {
1500
1500
1501
1501
/// A user-provided visitor to allow customizing different kinds of
1502
1502
/// situations.
1503
- parse_callbacks : Option < Box < callbacks:: ParseCallbacks > > ,
1503
+ parse_callbacks : Option < Box < dyn callbacks:: ParseCallbacks > > ,
1504
1504
1505
1505
/// Which kind of items should we generate? By default, we'll generate all
1506
1506
/// of them.
@@ -1853,7 +1853,7 @@ impl Bindings {
1853
1853
/// Convert these bindings into source text (with raw lines prepended).
1854
1854
pub fn to_string ( & self ) -> String {
1855
1855
let mut bytes = vec ! [ ] ;
1856
- self . write ( Box :: new ( & mut bytes) as Box < Write > )
1856
+ self . write ( Box :: new ( & mut bytes) as Box < dyn Write > )
1857
1857
. expect ( "writing to a vec cannot fail" ) ;
1858
1858
String :: from_utf8 ( bytes)
1859
1859
. expect ( "we should only write bindings that are valid utf-8" )
@@ -1871,7 +1871,7 @@ impl Bindings {
1871
1871
}
1872
1872
1873
1873
/// Write these bindings as source text to the given `Write`able.
1874
- pub fn write < ' a > ( & self , mut writer : Box < Write + ' a > ) -> io:: Result < ( ) > {
1874
+ pub fn write < ' a > ( & self , mut writer : Box < dyn Write + ' a > ) -> io:: Result < ( ) > {
1875
1875
writer. write (
1876
1876
"/* automatically generated by rust-bindgen */\n \n " . as_bytes ( ) ,
1877
1877
) ?;
0 commit comments