!GccHEyvTSfTzIYQqNd:matrix.org

Leafish Development

258 Members
Where cool things get made15 Servers

Load older messages


SenderMessageTime
30 Jul 2023
@_discord_525070458354401290:t2bot.iogugamariz#0 changed their display name from GUGAMARIZ#7392 to gugamariz#0.02:33:50
@_discord_525070458354401290:t2bot.iogugamariz#0 changed their profile picture.02:33:56
1 Aug 2023
@giraffe_face_26:mozilla.orgme is me changed their display name from me is me to OmarHany Kasban.08:43:45
@giraffe_face_26:mozilla.orgme is me changed their display name from OmarHany Kasban to me is me.08:44:26
3 Aug 2023
@giraffe_face_26:mozilla.orgme is me changed their display name from me is me to Matrix Bridge.11:16:15
@giraffe_face_26:mozilla.orgme is me changed their display name from Matrix Bridge to me is me.11:16:41
@zwolf8:matrix.orgZwolf changed their profile picture.18:25:01
5 Aug 2023
@_discord_772104541142646815:t2bot.iolilnerd11#0 changed their display name from lilnerd11 to lilnerd11#0.06:29:20
@_discord_174765028614864898:t2bot.ioliante#0 changed their display name from Liante to liante#0.10:35:13
9 Aug 2023
@_discord_542493666296594473:t2bot.ioslushie01 changed their display name from slushie to slushie01#0.02:42:52
@_discord_542493666296594473:t2bot.ioslushie01 changed their display name from slushie01#0 to slushie01.02:42:53
@_discord_1121159551815782481:t2bot.iomolasseslover joined the room.20:03:53
11 Aug 2023
@kess0:matrix.orgkess joined the room.15:31:17
12 Aug 2023
@_discord_308343641598984203:t2bot.iofury_101#0 changed their display name from Fury#4589 to fury_101#0.05:31:26
@_discord_308343641598984203:t2bot.iofury_101#0 changed their profile picture.05:31:29
13 Aug 2023
@_discord_706430621022683159:t2bot.iozenxarch#0 changed their display name from ZenXArch to zenxarch#0.03:12:58
@_discord_706430621022683159:t2bot.iozenxarch#0 changed their profile picture.03:13:01
14 Aug 2023
@_discord_771045577433546773:t2bot.iofyrstikkeske#0 changed their display name from Fyrstikkeske#4705 to fyrstikkeske#0.15:35:11
20 Aug 2023
@_discord_319463560356823050:t2bot.iouku#0 changed their profile picture.17:37:51
21 Aug 2023
@_discord_319463560356823050:t2bot.iouku#0 changed their profile picture.00:12:52
@_discord_223512801811890177:t2bot.iogisforgravity#0 changed their display name from Gravity to gisforgravity#0.13:10:55
22 Aug 2023
@_discord_542493666296594473:t2bot.ioslushie01 I need some help with something:
I'm trying to format the chat messages to look like regular minecraft instead of a json dump. however, when i try to pass a String to the ui::FormattedBuilder::new() function on line 427 (src/screen/chat.rs), i get this error:
01:20:08
@_discord_542493666296594473:t2bot.ioslushie01
$ cargo run
   Compiling leafish v0.1.0 (/home/ericr/code/Leafish)
warning: unused import: `Result`
  --> src/screen/chat.rs:30:18
   |
30 | use serde_json::{Result, Value};
   |                  ^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

error[E0277]: the trait bound `leafish_protocol::format::Component: From<std::string::String>` is not satisfied
    --> src/screen/chat.rs:427:23
     |
427  |                 .text(formatted_message)
     |                  ---- ^^^^^^^^^^^^^^^^^ the trait `From<std::string::String>` is not implemented for `leafish_protocol::format::Component`
     |                  |
     |                  required by a bound introduced by this call
     |
     = note: required for `std::string::String` to implement `Into<leafish_protocol::format::Component>`
note: required by a bound in `FormattedBuilder::text`
    --> src/ui/mod.rs:722:34
     |
722  |                   pub fn $sname<T: Into<$sty>>(mut self, val: T) -> Self {
     |                                    ^^^^^^^^^^ required by this bound in `FormattedBuilder::text`
...
1080 | / element! {
1081 | |     ref FormattedRef
1082 | |     pub struct Formatted {
1083 | |         pub width: f64,
...    |
1106 | |         simple text: format::Component,
     | |                ---- required by a bound in this associated function
...    |
1111 | |     }
1112 | | }
     | |_- in this macro invocation
     = note: this error originates in the macro `element` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
warning: `leafish` (bin "leafish") generated 1 warning
error: could not compile `leafish` (bin "leafish") due to previous error; 1 warning emitted
01:21:19
@_discord_542493666296594473:t2bot.ioslushie01 *
$ cargo run
   Compiling leafish v0.1.0 (/home/username/code/Leafish)
warning: unused import: `Result`
  --> src/screen/chat.rs:30:18
   |
30 | use serde_json::{Result, Value};
   |                  ^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

error[E0277]: the trait bound `leafish_protocol::format::Component: From<std::string::String>` is not satisfied
    --> src/screen/chat.rs:427:23
     |
427  |                 .text(formatted_message)
     |                  ---- ^^^^^^^^^^^^^^^^^ the trait `From<std::string::String>` is not implemented for `leafish_protocol::format::Component`
     |                  |
     |                  required by a bound introduced by this call
     |
     = note: required for `std::string::String` to implement `Into<leafish_protocol::format::Component>`
note: required by a bound in `FormattedBuilder::text`
    --> src/ui/mod.rs:722:34
     |
722  |                   pub fn $sname<T: Into<$sty>>(mut self, val: T) -> Self {
     |                                    ^^^^^^^^^^ required by this bound in `FormattedBuilder::text`
...
1080 | / element! {
1081 | |     ref FormattedRef
1082 | |     pub struct Formatted {
1083 | |         pub width: f64,
...    |
1106 | |         simple text: format::Component,
     | |                ---- required by a bound in this associated function
...    |
1111 | |     }
1112 | | }
     | |_- in this macro invocation
     = note: this error originates in the macro `element` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
warning: `leafish` (bin "leafish") generated 1 warning
error: could not compile `leafish` (bin "leafish") due to previous error; 1 warning emitted
01:21:34
@_discord_542493666296594473:t2bot.ioslushie01 my changes can be seen here: https://github.com/Lea-fish/Leafish/compare/main...slushie0:Leafish:main 01:21:51
@_discord_140580765657333760:t2bot.iorj00a#0 changed their display name from rj00a to rj00a#0.14:38:52
@_discord_422784254729256972:t2bot.iojavaimpact I will try taking a look tomorrow 19:43:39
23 Aug 2023
@_discord_542493666296594473:t2bot.ioslushie01 appreciate it 03:11:28
@_discord_542493666296594473:t2bot.ioslushie01 and sorry for my code im new to rust 💀 03:11:38
@_discord_422784254729256972:t2bot.iojavaimpact I think the problem is that .text() expects a component but you are giving it a string instead 03:44:13

Show newer messages


Back to Room ListRoom Version: 6