File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -288,13 +288,11 @@ impl Metadata {
288288 cargo_args. push ( format ! ( "host.rustflags={rustflags}" ) ) ;
289289 }
290290
291- if !all_rustdoc_args. is_empty ( ) {
292- cargo_args. push ( "--config" . into ( ) ) ;
293- let rustdocflags = toml:: Value :: try_from ( & all_rustdoc_args)
294- . expect ( "serializing a string should never fail" )
295- . to_string ( ) ;
296- cargo_args. push ( format ! ( "build.rustdocflags={rustdocflags}" ) ) ;
297- }
291+ cargo_args. push ( "--config" . into ( ) ) ;
292+ let rustdocflags = toml:: Value :: try_from ( & all_rustdoc_args)
293+ . expect ( "serializing a string should never fail" )
294+ . to_string ( ) ;
295+ cargo_args. push ( format ! ( "build.rustdocflags={rustdocflags}" ) ) ;
298296
299297 cargo_args. extend ( additional_args. iter ( ) . map ( |s| s. to_owned ( ) ) ) ;
300298 cargo_args. extend_from_slice ( & self . cargo_args ) ;
You can’t perform that action at this time.
0 commit comments