cargo update + format + clippy

This commit is contained in:
Henrik Friedrichsen
2020-11-21 15:42:17 +01:00
parent d728cd2bb4
commit 09febf7187
5 changed files with 260 additions and 168 deletions

View File

@@ -309,7 +309,7 @@ fn main() {
let mut main = s.find_name::<ui::layout::Layout>("main").unwrap();
main.clear_cmdline();
}
if cmd.starts_with('/') {
if cmd.strip_prefix('/').is_some() {
let query = &cmd[1..];
let command = Command::Jump(JumpMode::Query(query.to_string()));
if let Some(data) = s.user_data::<UserData>().cloned() {