fn find_member(&self, member: &PackageId) -> CargoResult<&PackageId> {
        for m in self.workspace.members() {
            // members with the same name in a workspace is not allowed
            // even with different paths
            if member.name() == m.name() {
                return Ok(m.package_id());
            }
        }
        Err(format_err!("Workspace member {} not found", member.name()))
    }
/// Find a member based on member name
Find a member based on member name
Find a member based on member name
fn find_member(&self, member: &PackageId) -> CargoResult<&PackageId> {
        for m in self.workspace.members() {
            // members with the same name in a workspace is not allowed
            // even with different paths
            if member.name() == m.name() {
                return Ok(m.package_id());
            }
        }
        Err(format_err!("Workspace member {} not found", member.name()))
    }
fn find_member ( & self , member : & PackageId ) -> CargoResult < & PackageId > { for m in self . workspace . members ( ) { // members with the same name in a workspace is not allowed // even with different paths if member . name ( ) == m . name ( ) { return Ok ( m . package_id ( ) ) ; } } Err ( format_err ! ( " " member name ( ) ) ) }
Find a member based on member name
Find a member based on member name
&self
member
&PackageId