Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T01:49:43.417Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

owned_string_into_shared.stderr

54 lines · 2.5 KB · text
1error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
2  --> $DIR/owned_string_into_shared.rs:13:24
3   |
4LL |     let _a: Arc<str> = String::from("hello").into();
5   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D owned-string-into-shared` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(owned_string_into_shared)]`
9
10error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
11  --> $DIR/owned_string_into_shared.rs:16:23
12   |
13LL |     let _b: Rc<str> = String::from("world").into();
14   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
17  --> $DIR/owned_string_into_shared.rs:19:28
18   |
19LL |     let _c: Cow<'_, str> = String::from("borrowed-or-owned").into();
20   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
22error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
23  --> $DIR/owned_string_into_shared.rs:22:24
24   |
25LL |     let _d: Arc<str> = "via-to-string".to_string().into();
26   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
28error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
29  --> $DIR/owned_string_into_shared.rs:25:24
30   |
31LL |     let _e: Arc<str> = "via-to-owned".to_owned().into();
32   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
34error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
35  --> $DIR/owned_string_into_shared.rs:28:23
36   |
37LL |     let _f: Rc<str> = "rc-via-to-string".to_string().into();
38   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39
40error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
41  --> $DIR/owned_string_into_shared.rs:31:28
42   |
43LL |     let _g: Cow<'_, str> = "cow-via-to-owned".to_owned().into();
44   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
46error: this allocates an owned `String` from a string literal only to convert it into a refcounted string
47  --> $DIR/owned_string_into_shared.rs:35:9
48   |
49LL |         String::from("this literal is definitely longer than twenty three bytes").into();
50   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51
52error: aborting due to 8 previous errors
53
54
Served at tenant.openagents/omega Member data and write actions are omitted.