Skip to content

Commit

Permalink
chore: dprint 0.65 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Jan 14, 2024
1 parent 7218fa2 commit fd51a9d
Show file tree
Hide file tree
Showing 13 changed files with 185 additions and 85 deletions.
173 changes: 131 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ tracing = ["dprint-core/tracing"]

[dependencies]
anyhow = "1.0.65"
dprint-core = { version = "0.59.0", features = ["formatting"] }
dprint-core = { version = "0.65.0", features = ["formatting"] }
itertools = "0.10"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
taplo = { version = "0.7.0", default_features = false }

[dev-dependencies]
debug-here = "0.2"
dprint-development = "0.9.1"
dprint-development = "0.9.5"
serde_json = { version = "1.0" }
11 changes: 5 additions & 6 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"incremental": true,
"indentWidth": 2,
"exec": {
"associations": "**/*.rs",
"rustfmt": "rustfmt"
"commands": [{
"command": "rustfmt --edition 2021 --config imports_granularity=item",
"exts": ["rs"]
}]
},
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml,rs}"],
"excludes": [
"**/node_modules",
"**/*-lock.json",
Expand All @@ -16,6 +15,6 @@
"https://plugins.dprint.dev/json-0.15.6.wasm",
"https://plugins.dprint.dev/markdown-0.14.1.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm",
"https://plugins.dprint.dev/exec-0.3.1.json@9351b67ec7a6b58a69201c2834cba38cb3d191080aefc6422fb1320f03c8fc4d"
"https://plugins.dprint.dev/exec-0.4.2.json@ca3c3d1cc1105b4ac1c31afdb26791a90209f13a5950f8de00dcab5e5ee293a7"
]
}
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.71.0"
channel = "1.75.0"
components = ["clippy", "rustfmt"]
9 changes: 5 additions & 4 deletions src/cargo.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::cmp::Ordering;
use std::iter::Peekable;
use std::path::Path;
use taplo::{
rowan::NodeOrToken,
syntax::{SyntaxElement, SyntaxKind, SyntaxNode, SyntaxToken},
};
use taplo::rowan::NodeOrToken;
use taplo::syntax::SyntaxElement;
use taplo::syntax::SyntaxKind;
use taplo::syntax::SyntaxNode;
use taplo::syntax::SyntaxToken;

use crate::rowan_extensions::*;

Expand Down
Loading

0 comments on commit fd51a9d

Please sign in to comment.