@@ -168,7 +168,7 @@ config_data! {
168168 /// set to a path relative to the workspace to use that path.
169169 cargo_targetDir | rust_analyzerTargetDir: Option <TargetDirectory > = None ,
170170 /// Unsets the implicit `#[cfg(test)]` for the specified crates.
171- cargo_unsetTest: Vec <String > = @verbatim : r#" ["core"]"# ,
171+ cargo_unsetTest: Vec <String > = vec! [ "core" . to_owned ( ) ] ,
172172
173173 /// Run the check command for diagnostics on save.
174174 checkOnSave | checkOnSave_enable: bool = true ,
@@ -2074,7 +2074,7 @@ mod single_or_array {
20742074
20752075#[ derive( Serialize , Deserialize , Debug , Clone ) ]
20762076#[ serde( untagged) ]
2077- enum ManifestOrProjectJson {
2077+ pub ( crate ) enum ManifestOrProjectJson {
20782078 Manifest ( Utf8PathBuf ) ,
20792079 ProjectJson ( ProjectJsonData ) ,
20802080}
@@ -3177,7 +3177,10 @@ mod tests {
31773177 "rust" : { "analyzerTargetDir" : "other_folder" }
31783178 } ) )
31793179 . unwrap ( ) ;
3180- assert_eq ! ( & Some ( TargetDirectory :: Directory ( Utf8PathBuf :: from( "other_folder" ) ) ) ) ;
3180+ assert_eq ! (
3181+ config. cargo_targetDir( ) ,
3182+ & Some ( TargetDirectory :: Directory ( Utf8PathBuf :: from( "other_folder" ) ) )
3183+ ) ;
31813184 assert ! (
31823185 matches!( config. flycheck( ) , FlycheckConfig :: CargoCommand { options, .. } if options. target_dir == Some ( Utf8PathBuf :: from( "other_folder" ) ) )
31833186 ) ;
0 commit comments