mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 06:35:39 +00:00
Fix warnings
This commit is contained in:
@@ -22,7 +22,7 @@ fn main() {
|
|||||||
// PanicInfo's payload is usually a &'static str or String.
|
// PanicInfo's payload is usually a &'static str or String.
|
||||||
// See: https://doc.rust-lang.org/beta/std/panic/struct.PanicInfo.html#method.payload
|
// See: https://doc.rust-lang.org/beta/std/panic/struct.PanicInfo.html#method.payload
|
||||||
let message = match panic_info.payload().downcast_ref::<&str>() {
|
let message = match panic_info.payload().downcast_ref::<&str>() {
|
||||||
Some(message) => message.to_string(),
|
Some(&message) => message.to_string(),
|
||||||
None => match panic_info.payload().downcast_ref::<String>() {
|
None => match panic_info.payload().downcast_ref::<String>() {
|
||||||
Some(message) => message.clone(),
|
Some(message) => message.clone(),
|
||||||
None => "<no message>".to_string(),
|
None => "<no message>".to_string(),
|
||||||
|
|||||||
@@ -63,15 +63,6 @@ impl ChangeProcessor {
|
|||||||
.spawn(move || {
|
.spawn(move || {
|
||||||
log::trace!("ChangeProcessor thread started");
|
log::trace!("ChangeProcessor thread started");
|
||||||
|
|
||||||
#[allow(
|
|
||||||
// Crossbeam's select macro generates code that Clippy doesn't like,
|
|
||||||
// and Clippy blames us for it.
|
|
||||||
clippy::drop_copy,
|
|
||||||
|
|
||||||
// Crossbeam uses 0 as *const _ and Clippy doesn't like that either,
|
|
||||||
// but this isn't our fault.
|
|
||||||
clippy::zero_ptr,
|
|
||||||
)]
|
|
||||||
loop {
|
loop {
|
||||||
select! {
|
select! {
|
||||||
recv(vfs_receiver) -> event => {
|
recv(vfs_receiver) -> event => {
|
||||||
|
|||||||
@@ -181,6 +181,7 @@ impl ServeSession {
|
|||||||
self.tree_mutation_sender.clone()
|
self.tree_mutation_sender.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
pub fn vfs(&self) -> &Vfs {
|
pub fn vfs(&self) -> &Vfs {
|
||||||
&self.vfs
|
&self.vfs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user