@@ -166,7 +166,7 @@ config_data! {
166166 /// set to a path relative to the workspace to use that path.
167167 cargo_targetDir | rust_analyzerTargetDir: Option <TargetDirectory > = None ,
168168 /// Unsets the implicit `#[cfg(test)]` for the specified crates.
169- cargo_unsetTest: Vec <String > = @verbatim : r#" ["core"]"# ,
169+ cargo_unsetTest: Vec <String > = vec! [ "core" . to_owned ( ) ] ,
170170
171171 /// Run the check command for diagnostics on save.
172172 checkOnSave | checkOnSave_enable: bool = true ,
@@ -2037,7 +2037,7 @@ mod single_or_array {
20372037
20382038#[ derive( Serialize , Deserialize , Debug , Clone ) ]
20392039#[ serde( untagged) ]
2040- enum ManifestOrProjectJson {
2040+ pub ( crate ) enum ManifestOrProjectJson {
20412041 Manifest ( Utf8PathBuf ) ,
20422042 ProjectJson ( ProjectJsonData ) ,
20432043}
@@ -3140,7 +3140,10 @@ mod tests {
31403140 "rust" : { "analyzerTargetDir" : "other_folder" }
31413141 } ) )
31423142 . unwrap ( ) ;
3143- assert_eq ! ( & Some ( TargetDirectory :: Directory ( Utf8PathBuf :: from( "other_folder" ) ) ) ) ;
3143+ assert_eq ! (
3144+ config. cargo_targetDir( ) ,
3145+ & Some ( TargetDirectory :: Directory ( Utf8PathBuf :: from( "other_folder" ) ) )
3146+ ) ;
31443147 assert ! (
31453148 matches!( config. flycheck( ) , FlycheckConfig :: CargoCommand { target_dir, .. } if target_dir == Some ( Utf8PathBuf :: from( "other_folder" ) ) )
31463149 ) ;
0 commit comments