Skip to content

Commit

Permalink
Update style_edition
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Oct 4, 2024
1 parent 714b8bc commit 263b3f6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
6 changes: 1 addition & 5 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ group_imports = "StdExternalCrate"
imports_granularity = "Module"
newline_style = "Unix"
normalize_comments = true
style_edition = "2024"
unstable_features = true
use_field_init_shorthand = true
version = "Two"

ignore = [
"testing/tests/hello.rs",
]
8 changes: 3 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ fn main() {
rinja.push("rinja");

println!("cargo::rerun-if-changed=.git/modules/rinja/refs/heads/master");
git_run(
"RINJA_DESCR",
&rinja,
["describe", "--tags", "--long", "HEAD"],
);
git_run("RINJA_DESCR", &rinja, [
"describe", "--tags", "--long", "HEAD",
]);
git_run("RINJA_REV", &rinja, ["rev-parse", "HEAD"]);

println!("cargo::rerun-if-changed=.git/modules/rinja/config");
Expand Down
10 changes: 5 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ use std::time::Duration;
use prettyplease::unparse;
use proc_macro2::TokenStream;
use rinja_derive_standalone::derive_template;
use syn::{parse2, parse_quote};
use syn::{parse_quote, parse2};
use wasm_bindgen::prelude::wasm_bindgen;
use web_sys::js_sys::{Function, JSON};
use web_sys::wasm_bindgen::prelude::Closure;
use web_sys::wasm_bindgen::{JsCast, JsValue};
use web_sys::{window, FocusEvent, HtmlDialogElement, HtmlSelectElement, Storage};
use web_sys::{FocusEvent, HtmlDialogElement, HtmlSelectElement, Storage, window};
use yew::{
function_component, html, use_effect_with, use_state, Callback, Event, Html, MouseEvent,
Properties, SubmitEvent, UseStateHandle,
Callback, Event, Html, MouseEvent, Properties, SubmitEvent, UseStateHandle, function_component,
html, use_effect_with, use_state,
};

use crate::editor::Editor;
use crate::{ThrowAt, ASSETS};
use crate::{ASSETS, ThrowAt};

#[derive(Properties, PartialEq, Clone)]
struct Props {
Expand Down
6 changes: 3 additions & 3 deletions src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use std::rc::Rc;
use syntect::easy::HighlightLines;
use syntect::highlighting::{Color, FontStyle, Theme};
use syntect::util::LinesWithEndings;
use web_sys::wasm_bindgen::JsCast;
use web_sys::HtmlTextAreaElement;
use yew::{function_component, html, Callback, Html, InputEvent, Properties};
use web_sys::wasm_bindgen::JsCast;
use yew::{Callback, Html, InputEvent, Properties, function_component, html};

use crate::{ThrowAt, ASSETS};
use crate::{ASSETS, ThrowAt};

#[derive(Properties, PartialEq)]
pub struct EditorProps {
Expand Down

0 comments on commit 263b3f6

Please sign in to comment.