Skip to content

Commit

Permalink
Merge pull request #68 from smolck/silence-warnings
Browse files Browse the repository at this point in the history
Fix a few minor issues (compiler warnings)
  • Loading branch information
vhakulinen committed Aug 6, 2019
2 parents 3375207 + 4e5a728 commit dea3dd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ui/popupmenu/lazy_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ struct State {
/// Once we're loaded some (or all) data, this closure gets called if
/// one exists. The first value in the tuple can is indication on the
/// number of items needed before calling the closure.
once_loaded: Option<(Option<i32>, Box<Fn(&Vec<CompletionItemWidgetWrap>)>)>,
once_loaded:
Option<(Option<i32>, Box<dyn Fn(&Vec<CompletionItemWidgetWrap>)>)>,

list: gtk::ListBox,
css_provider: gtk::CssProvider,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/popupmenu/popupmenu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl Popupmenu {
list.select_row(Some(&item.row));

{
let mut id = Arc::new(ThreadGuard::new(None));
let id = Arc::new(ThreadGuard::new(None));
let id_ref = id.clone();
let list = list.clone();
// Ensure that the row is in the view, but make sure first
Expand Down
2 changes: 1 addition & 1 deletion src/ui/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ fn handle_request(
Request::CursorTooltipStyles => {
let styles = state.cursor_tooltip.get_styles();

let mut res: Vec<Value> =
let res: Vec<Value> =
styles.into_iter().map(|s| s.into()).collect();

Ok(res.into())
Expand Down

0 comments on commit dea3dd2

Please sign in to comment.