-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust 1.79 lints #5927
Rust 1.79 lints #5927
Conversation
@@ -47,7 +48,7 @@ pub struct UpdateHandler<E: EthSpec> { | |||
pub blockprint: Option<WatchBlockprintClient>, | |||
pub config: Config, | |||
pub slots_per_epoch: u64, | |||
pub spec: WatchSpec<E>, | |||
pub _phantom: PhantomData<E>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this generic just be removed instead?
@@ -33,6 +33,7 @@ pub struct WatchBlockprint { | |||
} | |||
|
|||
#[derive(Debug, QueryableByName, diesel::FromSqlRow)] | |||
#[allow(dead_code)] | |||
pub struct WatchValidatorBlockprint { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be deleted? i don't see it used but not sure if it's a useful export if anything depends on beacon watch?
Also I need to cherry pick #5926 in to get CI to pass, so I'm going to close that PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let's merge for now and we can cleanup beaconwatch later if we like
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at a740980 |
Issue Addressed
fixing 1.79 lints including:
u64::MAX
instead ofu64::max_value()
orstd::u64::MAX
#[allow(dead_code)]
to these errorsspec: WatchSpec<E>
fromUpdateHandler
as this was unused - wasn't sure if this field was intentionally there and should be kept?