Skip to content

Commit 6e003b8

Browse files
authored
Configure Dependabot for Rust and GitHub Actions (#16)
Added configuration for Rust and GitHub Actions updates with monthly schedule. Signed-off-by: Richard Schneeman <[email protected]>
1 parent 98451b5 commit 6e003b8

File tree

3 files changed

+51
-24
lines changed

3 files changed

+51
-24
lines changed

.github/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
labels:
8+
- "dependencies"
9+
- "skip changelog"
10+
groups:
11+
rust-dependencies:
12+
update-types:
13+
- "minor"
14+
- "patch"
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "monthly"
19+
labels:
20+
- "skip changelog"
21+
groups:
22+
github-actions:
23+
update-types:
24+
- "minor"
25+
- "patch"

cache_diff/tests/fails/generic_missing_bounds.stderr

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@ help: consider restricting type parameter `T` with trait `PartialEq`
1313
error[E0277]: `T` doesn't implement `std::fmt::Display`
1414
--> tests/fails/generic_missing_bounds.rs:3:10
1515
|
16-
3 | #[derive(CacheDiff)]
17-
| ^^^^^^^^^ `T` cannot be formatted with the default formatter
18-
|
19-
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
20-
= note: required for `&T` to implement `std::fmt::Display`
16+
3 | #[derive(CacheDiff)]
17+
| ^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `T`
18+
|
19+
= note: required for `&T` to implement `std::fmt::Display`
2120
note: required by a bound in `fmt_value`
22-
--> src/lib.rs
23-
|
24-
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
25-
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
26-
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
21+
--> src/lib.rs
22+
|
23+
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
24+
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
25+
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
2726
help: consider restricting type parameter `T` with trait `Display`
28-
|
29-
4 | struct Example<T: std::fmt::Display> {
30-
| +++++++++++++++++++
27+
|
28+
4 | struct Example<T: std::fmt::Display> {
29+
| +++++++++++++++++++
Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
error[E0277]: `NotDisplay` doesn't implement `std::fmt::Display`
22
--> tests/fails/missing_display.rs:5:10
33
|
4-
5 | #[derive(CacheDiff)]
5-
| ^^^^^^^^^ `NotDisplay` cannot be formatted with the default formatter
6-
|
7-
= help: the trait `std::fmt::Display` is not implemented for `NotDisplay`
8-
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
9-
= note: required for `&NotDisplay` to implement `std::fmt::Display`
4+
5 | #[derive(CacheDiff)]
5+
| ^^^^^^^^^ unsatisfied trait bound
6+
|
7+
help: the trait `std::fmt::Display` is not implemented for `NotDisplay`
8+
--> tests/fails/missing_display.rs:3:1
9+
|
10+
3 | struct NotDisplay;
11+
| ^^^^^^^^^^^^^^^^^
12+
= note: required for `&NotDisplay` to implement `std::fmt::Display`
1013
note: required by a bound in `fmt_value`
11-
--> src/lib.rs
12-
|
13-
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
14-
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
15-
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
14+
--> src/lib.rs
15+
|
16+
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
17+
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
18+
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)