package vektah.rust.ide.sdk;

import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.projectRoots.SdkAdditionalData;
import com.intellij.util.xmlb.XmlSerializerUtil;
import com.sun.tools.javac.resources.version;
import org.jetbrains.annotations.Nullable;
import vektah.rust.i18n.RustBundle;

public class RustSdkData implements SdkAdditionalData, PersistentStateComponent<RustSdkData> {
	public String pathRustc;
	public String pathLibs;
	public String version;
	public String hostTriple;

	// For serialization / deserialization
	private RustSdkData() {}

	public RustSdkData(String pathRustc) {
		this.pathRustc = pathRustc;
	}

	@Nullable
	@Override
	public RustSdkData getState() {
		return this;
	}

	@Override
	public void loadState(RustSdkData state) {
		XmlSerializerUtil.copyBean(state, this);
	}

	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}

	public String getSdkName() {
		return RustBundle.message("sdk.fullname.rust", version);
	}
}

@@ -201,54 +201,8 @@
 il;%0A
-import com.sun.tools.javac.resources.version;%0A
 impo

Remove unused import