

LetLive. Creates a temporary that will live through the entirety of it's parent block

s.com_id.to_string() is a temporary, query! wants a &str&String not &str but same issue either way
match statement 




C Compliance Changes (CCC), introducing compound literals and (post/pre)crement operators

The value of the compound literal is that of an unnamed object initialized by the initializer list. If
the compound literal occurs outside the body of a function, the object has static storage duration; otherwise, it has automatic storage duration associated with the enclosing block.

(i32){ s.state as i32}

LetLive! { s.state as i32 } ooor (let s.state as i32)






edit. The arguments are directly passed to the program. The message in which the command is executed must either have a map attached or be a reply to a message where a map is attached.
This can be used for example to extend all layers in any direction (up and left are not supported by the editor) and remove unused envelopes.
The command finalize simply executes edit with the arguments --remove-everything-unused and `--shri...

d4d987c Add bare-bones setup steps in README - Patiga

Learath2/ddnet-discordbot but I didn't push the map testing part yet, but I don't intend it to be permanent either






pub trait Executor<'c>: Send + Debug {
type Database: Database;
fn fetch_many<'e, 'q, E>(
'c denotes the lifetime of the Connection but I honestly don't know from a glanceimpl<'c> Executor<'c> for &'c mut PoolConnection<Sqlite> this is what I based my guess on but who knows 





net_socket_read_wait when you call this function it will wait for packets on the socket for time, during this time it will yield to the kernel so you won't be using the cpu at all

time = 0 this will block on select until there are some packets there
1time = -1 sorry 0 returns immediately if there are no packetx




reply1 suggests it does indeed know enough to coerce the type of the box
Box<YourSpecificErrorType>Result<Message, Box<YourSpecificErrorType>> cannot be coerced to Result<Message, Box<dyn Error>>, I thinkuse std::fmt;
fn main() {
let x: Result<(), Box<()>> = Ok(());
let y: Result<(), Box<dyn fmt::Debug>> = x;
}error[E0308]: mismatched types
--> a.rs:4:46
|
4 | let y: Result<(), Box<dyn fmt::Debug>> = x;
| ------------------------------- ^ expected trait object `dyn Debug`, found `()`
| |
| expected due to this
|
= note: expected enum `Result<_, Box<dyn Debug>>`
found enum `Result<_, Box<()>>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
() even implement Debug?

println!("{:?}", ());










Result<Message> where result is anyhow::Result



map_err

std::error::Error, found trait std::error::Error + Sync + std::marker::Send


source()self.1.as_ref().map(|e| -> &(dyn StdError + 'static) { &**e })

self.1.as_ref().map(|e| -> &(dyn StdError + 'static) { &**e }) &**e is so ugly 



self.1.as_ref().map(|err| err.as_ref() as _) (edited)
self.1.as_deref().map(|e| -> &(dyn StdError + 'static) { e }) at the end and that works

as _



dyn Error + Send + Sync definitely satisfies dyn Error



























std::sort<int> and std::sort<float> can't be optimized together
if (m_TileIndex == TILE_TELEIN_1)
{
m_Core.m_Pos = TILE_TELEOUT_1;
}

m_Core.m_Pos needs to be set to a position, not a tile index





CEntity has an m_Pos and CCharacter : CEntity so it has an m_Pos absolutely no idea if we use it though, don't really remember


pub async fn sql_start_transaction<'a, T: Acquire<'a>>(c: T) -> Result<Transaction<'a, T::Database>, sqlx::Error> {
c.acquire().await?.begin().await
}
pub async fn sql_start_transaction<T: Acquire<'static>>(c: T) -> Result<Transaction<'static, T::Database>, sqlx::Error> {
c.acquire().await?.begin().await
}






game/client/components/players.cpp but fail to see the size