Set MSRV to 1.82
This commit is contained in:
parent
4cd814c3fb
commit
053b614187
6 changed files with 8 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ impl Info {
|
|||
}
|
||||
|
||||
pub fn prepend_trigger(&mut self, trigger: impl ToString) {
|
||||
let cur_trigger = self.trigger.get_or_insert_default();
|
||||
// TODO Use get_or_instert_default when updating MSRV
|
||||
let cur_trigger = self.trigger.get_or_insert_with(String::new);
|
||||
if !cur_trigger.is_empty() {
|
||||
cur_trigger.insert(0, ' ');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue