Skip to content

Commit e84b92f

Browse files
committed
Get diff test working again
1 parent 03acbbe commit e84b92f

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

crate/diffs/type_cosplay.diff

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
diff -r ./insecure/Cargo.toml ../../../../lints/type_cosplay/ui/insecure/Cargo.toml
2-
4c4
3-
< description = "Created with Anchor"
4-
---
5-
> description = "single deserialized type; is not enum; no discriminant"
62
19c19
73
< anchor-lang = "0.20.1"
84
---
95
> anchor-lang = "0.24.2"
106
diff -r ./insecure/src/lib.rs ../../../../lints/type_cosplay/ui/insecure/src/lib.rs
11-
5a6
12-
> // single deserialized type; is not enum; no discriminant
13-
10c11,13
7+
10c10,12
148
< pub fn update_user(ctx: Context<UpdateUser>) -> ProgramResult {
159
---
1610
> pub fn update_user(
1711
> ctx: Context<UpdateUser>,
1812
> ) -> anchor_lang::solana_program::entrypoint::ProgramResult {
19-
37a41,42
13+
37a40,41
2014
>
2115
> fn main() {}
2216
Only in ../../../../lints/type_cosplay/ui/insecure/src: lib.stderr
@@ -32,6 +26,7 @@ diff -r ./recommended/src/lib.rs ../../../../lints/type_cosplay/ui/recommended/s
3226
31a34,35
3327
>
3428
> fn main() {}
29+
Only in ../../../../lints/type_cosplay/ui/recommended/src: lib.stderr
3530
diff -r ./secure/src/lib.rs ../../../../lints/type_cosplay/ui/secure/src/lib.rs
3631
10c10,12
3732
< pub fn update_user(ctx: Context<UpdateUser>) -> ProgramResult {
@@ -43,3 +38,4 @@ diff -r ./secure/src/lib.rs ../../../../lints/type_cosplay/ui/secure/src/lib.rs
4338
>
4439
> fn main() {}
4540
Only in ../../../../lints/type_cosplay/ui/secure/src: lib.stderr
41+
Only in ../../../../lints/type_cosplay/ui: secure-2

lints/type_cosplay/ui/insecure/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "type-cosplay-insecure"
33
version = "0.1.0"
4-
description = "Deserializes a single type-kind that is not an enum and does not have a proper discriminant"
4+
description = "Created with Anchor"
55
edition = "2018"
66

77
[lib]

0 commit comments

Comments
 (0)