mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-17 23:19:06 +00:00
Remove unused doc comments.
This commit is contained in:
parent
95452af449
commit
0b7d9f4602
@ -144,9 +144,9 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RocketLint {
|
|||||||
// the receiver in the type table we've constructed. If it's there, we use
|
// the receiver in the type table we've constructed. If it's there, we use
|
||||||
// it, if not, we use the call as the receiver.
|
// it, if not, we use the call as the receiver.
|
||||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
||||||
/// Fetches the top-level `Receiver` instance given that a method call
|
// Fetches the top-level `Receiver` instance given that a method call
|
||||||
/// was made to the receiver `rexpr`. Top-level here means "the
|
// was made to the receiver `rexpr`. Top-level here means "the
|
||||||
/// original". We search the `instance_vars` table to retrieve it.
|
// original". We search the `instance_vars` table to retrieve it.
|
||||||
let instance_for = |lint: &mut RocketLint, rexpr: &Expr| -> Option<Receiver> {
|
let instance_for = |lint: &mut RocketLint, rexpr: &Expr| -> Option<Receiver> {
|
||||||
match rexpr.node {
|
match rexpr.node {
|
||||||
ExprPath(QPath::Resolved(_, ref p)) => {
|
ExprPath(QPath::Resolved(_, ref p)) => {
|
||||||
|
@ -84,7 +84,7 @@ pub struct Limits {
|
|||||||
|
|
||||||
impl Default for Limits {
|
impl Default for Limits {
|
||||||
fn default() -> Limits {
|
fn default() -> Limits {
|
||||||
/// Default limit for forms is 32KiB.
|
// Default limit for forms is 32KiB.
|
||||||
Limits { forms: 32 * 1024, extra: Vec::new() }
|
Limits { forms: 32 * 1024, extra: Vec::new() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user