Skip to content

Commit

Permalink
Update to Rust 1.61
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed May 21, 2022
1 parent a5a9415 commit b236c23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -29,7 +29,7 @@ jobs:

- uses: hecrj/setup-rust-action@v1
with:
rust-version: 1.60.0
rust-version: 1.61.0

- name: Cache build
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion widgetry/src/app_state.rs
Expand Up @@ -33,7 +33,7 @@ pub(crate) struct App<A: SharedAppState> {
pub(crate) shared_app_state: A,
}

impl<A: SharedAppState> App<A> {
impl<A: 'static + SharedAppState> App<A> {
pub(crate) fn event(&mut self, ctx: &mut EventCtx) {
self.shared_app_state.before_event();

Expand Down
2 changes: 1 addition & 1 deletion widgetry/src/runner.rs
Expand Up @@ -29,7 +29,7 @@ pub(crate) struct State<A: SharedAppState> {
focus_owned_by: Option<String>,
}

impl<A: SharedAppState> State<A> {
impl<A: 'static + SharedAppState> State<A> {
// The bool indicates if the input was actually used.
fn event(&mut self, mut ev: Event, prerender: &Prerender) -> (Vec<UpdateType>, bool) {
if let Event::MouseWheelScroll(dx, dy) = ev {
Expand Down
2 changes: 1 addition & 1 deletion widgetry/src/tools/screenshot.rs
Expand Up @@ -4,7 +4,7 @@ use crate::runner::State;
use crate::{Prerender, ScreenDims, SharedAppState};

/// Take a screenshot of the entire canvas, tiling it based on the window's width and height.
pub(crate) fn screenshot_everything<A: SharedAppState>(
pub(crate) fn screenshot_everything<A: 'static + SharedAppState>(
state: &mut State<A>,
dir_path: &str,
prerender: &Prerender,
Expand Down

0 comments on commit b236c23

Please sign in to comment.