RsBundle  Check-in [8b9adfcbb9]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:solver: silence a clippy warning.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8b9adfcbb97466d34b712ce5842d39499cf69535
User & Date: fifr 2017-03-06 16:35:25.803
Context
2017-03-06
16:50
Add `MoveVariable` update. check-in: ce9ab8ec19 user: fifr tags: trunk
16:35
solver: silence a clippy warning. check-in: 8b9adfcbb9 user: fifr tags: trunk
2017-03-03
15:46
solver: fix adding new variables to master. check-in: 705a1cf52f user: fifr tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/solver.rs.
843
844
845
846
847
848
849

850
851
852
853
854
855
856
        let new_weight = self.weighter.weight(&current_state!(self, Step::Null), &self.params);
        self.master.set_weight(new_weight);
        self.cnt_null += 1;
        debug!("Null Step");
    }

    /// Perform one bundle iteration.

    pub fn step(&mut self) -> Result<Step> {
        self.iterinfos.clear();

        if !self.cur_valid {
            // current point needs new evaluation
            try!(self.init_master());
        }







>







843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
        let new_weight = self.weighter.weight(&current_state!(self, Step::Null), &self.params);
        self.master.set_weight(new_weight);
        self.cnt_null += 1;
        debug!("Null Step");
    }

    /// Perform one bundle iteration.
    #[cfg_attr(feature = "cargo-clippy", allow(collapsible_if))]
    pub fn step(&mut self) -> Result<Step> {
        self.iterinfos.clear();

        if !self.cur_valid {
            // current point needs new evaluation
            try!(self.init_master());
        }