lbownik commented on code in PR #5567:
URL: https://github.com/apache/netbeans/pull/5567#discussion_r1118134247


##########
rust/rust.project/src/org/netbeans/modules/rust/project/RustProjectFactory.java:
##########
@@ -39,15 +39,22 @@ public final class RustProjectFactory implements 
ProjectFactory2 {
 
     @Override
     public Project loadProject(FileObject projectDirectory, ProjectState 
state) throws IOException {
-        if (!isProject(projectDirectory)) {
+        if (isProject2(projectDirectory) == null) {
             return null;
         }
-        return new RustProject(projectDirectory, state);
+        FileObject cargotoml = projectDirectory.getFileObject("Cargo.toml");
+        CargoTOML cargo = null;
+        try {
+            cargo = new CargoTOML(cargotoml);

Review Comment:
   how about ?
   return new RustProject(projectDirectory, new CargoTOML(cargotoml), state);



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to