Remove unneeded mut

This commit is contained in:
Csonka Mihaly 2020-03-23 16:38:01 +01:00
parent 1c7c2932dd
commit f214a561b8

View file

@ -5,8 +5,8 @@ use crate::structures::option::{Config, RepoCommand};
use anyhow::Context;
use anyhow::Error;
pub fn handle_config(mut config: Config) -> Result<(), Error> {
match config.cmd.as_mut() {
pub fn handle_config(config: Config) -> Result<(), Error> {
match config.cmd.as_ref() {
None => flows::core::main(Variant::Core, config, true),
Some(c) => match c {