mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Fix newer Clippy warnings for 1.80 (#301)
This commit is contained in:
parent
d8d8e91295
commit
4fc71c9291
6 changed files with 41 additions and 38 deletions
|
@ -1457,11 +1457,11 @@ mod tests {
|
|||
assert_eq!(scrollback.cursor, MessageCursor::latest());
|
||||
|
||||
// Search backwards to MSG4.
|
||||
scrollback.search(prev.clone(), 1.into(), &ctx, &mut store).unwrap();
|
||||
scrollback.search(prev, 1.into(), &ctx, &mut store).unwrap();
|
||||
assert_eq!(scrollback.cursor, MSG4_KEY.clone().into());
|
||||
|
||||
// Search backwards to MSG2.
|
||||
scrollback.search(prev.clone(), 1.into(), &ctx, &mut store).unwrap();
|
||||
scrollback.search(prev, 1.into(), &ctx, &mut store).unwrap();
|
||||
assert_eq!(scrollback.cursor, MSG2_KEY.clone().into());
|
||||
assert_eq!(
|
||||
std::mem::take(&mut store.application.need_load)
|
||||
|
@ -1472,7 +1472,7 @@ mod tests {
|
|||
);
|
||||
|
||||
// Can't go any further; need_load now contains the room ID.
|
||||
scrollback.search(prev.clone(), 1.into(), &ctx, &mut store).unwrap();
|
||||
scrollback.search(prev, 1.into(), &ctx, &mut store).unwrap();
|
||||
assert_eq!(scrollback.cursor, MSG2_KEY.clone().into());
|
||||
assert_eq!(
|
||||
std::mem::take(&mut store.application.need_load)
|
||||
|
@ -1482,11 +1482,11 @@ mod tests {
|
|||
);
|
||||
|
||||
// Search forward twice to MSG1.
|
||||
scrollback.search(next.clone(), 2.into(), &ctx, &mut store).unwrap();
|
||||
scrollback.search(next, 2.into(), &ctx, &mut store).unwrap();
|
||||
assert_eq!(scrollback.cursor, MSG1_KEY.clone().into());
|
||||
|
||||
// Can't go any further.
|
||||
scrollback.search(next.clone(), 2.into(), &ctx, &mut store).unwrap();
|
||||
scrollback.search(next, 2.into(), &ctx, &mut store).unwrap();
|
||||
assert_eq!(scrollback.cursor, MSG1_KEY.clone().into());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue