clippy lints
This commit is contained in:
		@@ -130,16 +130,13 @@ impl System {
 | 
			
		||||
 | 
			
		||||
    /// Suggested maximum dt for this problem
 | 
			
		||||
    fn max_dt(&self) -> Float {
 | 
			
		||||
        let c_max = if self.operators.iter().any(|op| {
 | 
			
		||||
        let is_h2 = self.operators.iter().any(|op| {
 | 
			
		||||
            op.as_ref().either(
 | 
			
		||||
                |op| op.is_h2xi() || op.is_h2eta(),
 | 
			
		||||
                |op| op.is_h2xi() || op.is_h2eta(),
 | 
			
		||||
            )
 | 
			
		||||
        }) {
 | 
			
		||||
            0.5
 | 
			
		||||
        } else {
 | 
			
		||||
            1.0
 | 
			
		||||
        };
 | 
			
		||||
        });
 | 
			
		||||
        let c_max = if is_h2 { 0.5 } else { 1.0 };
 | 
			
		||||
        let mut max_dt: Float = Float::INFINITY;
 | 
			
		||||
 | 
			
		||||
        for (field, metrics) in self.fnow.iter().zip(self.metrics.iter()) {
 | 
			
		||||
@@ -220,7 +217,7 @@ fn main() {
 | 
			
		||||
        op: operators,
 | 
			
		||||
        integration_time,
 | 
			
		||||
        vortex: vortexparams,
 | 
			
		||||
    } = config.to_runtime();
 | 
			
		||||
    } = config.into_runtime();
 | 
			
		||||
 | 
			
		||||
    let mut sys = System::new(grids, bt, operators);
 | 
			
		||||
    sys.vortex(0.0, &vortexparams);
 | 
			
		||||
 
 | 
			
		||||
@@ -154,7 +154,7 @@ pub struct RuntimeConfiguration {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl Configuration {
 | 
			
		||||
    pub fn to_runtime(mut self) -> RuntimeConfiguration {
 | 
			
		||||
    pub fn into_runtime(mut self) -> RuntimeConfiguration {
 | 
			
		||||
        let default = self.grids.shift_remove("default").unwrap_or_default();
 | 
			
		||||
        let names = self.grids.keys().cloned().collect();
 | 
			
		||||
        let grids = self
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user