Skip to content

Commit

Permalink
fix code so it compiles for edition 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Delaere committed Jan 29, 2019
1 parent 9d1c467 commit 5080ed5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/manage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
use super::bold;
use rsmod::{get_module_paths, Rsmodule};
use crate::rsmod::{get_module_paths, Rsmodule};
use std::env::args;
use std::fs;
use std::fs::create_dir_all;
Expand All @@ -33,7 +33,7 @@ use std::io::Write;
use std::path::Path;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use wizard::{is_yes, read_input_shell};
use crate::wizard::{is_yes, read_input_shell};

//use getopts::{Options, Matches};

Expand Down Expand Up @@ -92,7 +92,7 @@ pub fn delete(rsmod: &Rsmodule) {
{
let modulepaths = get_module_paths(false);
for modulepath in modulepaths {
if modulepath != "" {
if &modulepath != "" {
super::cache::update(&modulepath, rsmod.shell);
}
}
Expand Down Expand Up @@ -426,7 +426,7 @@ pub fn add_path(shell: &str, mut output: &mut Vec<String>, skip: bool) {

// todo return Result instead of String
fn select_modulepath(shell: &str) -> String {
let modulepaths = super::get_module_paths(true);
let modulepaths = get_module_paths(true);

//eprintln!("{}", modulepaths.len());
if modulepaths.len() == 1 {
Expand Down

0 comments on commit 5080ed5

Please sign in to comment.