Skip to content

Commit

Permalink
🧹 Run cargo fmt and fix in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Jan 3, 2021
1 parent 4470115 commit c35c58b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ jobs:
allow_failures:
- rust: nightly
fast_finish: true
after_script:
before_script:
- rustup component add rustfmt
script:
- cargo build --verbose
- cargo test --verbose
- cargo fmt -- --check
4 changes: 1 addition & 3 deletions src/ini.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,6 @@ impl Ini {
///Returns `Some(Option<String>)` if the value exists or else, `None`.
pub fn remove_key(&mut self, section: &str, key: &str) -> Option<Option<String>> {
let (section, key) = self.autocase(section, key);
self.map
.get_mut(&section)?
.remove(&key)
self.map.get_mut(&section)?.remove(&key)
}
}

0 comments on commit c35c58b

Please sign in to comment.