fix clippyisms

pull/22/head
chris west 4 years ago
parent 3c057b56f9
commit 993ce83800

@ -117,7 +117,7 @@ pub fn parse(text: &str) -> Result<Config> {
}
// skip comments
if let Some('#') = line.chars().nth(0) {
if let Some('#') = line.chars().next() {
continue;
}

@ -27,7 +27,6 @@ use crate::{
utils, BUG_URL,
};
use lazy_static;
use libc;
use std::{
io::{stdin, stdout, Result, Write},
process::{self, Stdio},
@ -223,9 +222,8 @@ impl UI {
};
}
self.load(title, url).and_then(|view| {
self.load(title, url).map(|view| {
self.add_view(view);
Ok(())
})
}

Loading…
Cancel
Save