Skip to content

Commit 1423e46

Browse files
committed
fix(delegate): it now works in every which way
Custom property annotations have been very useful, to steer very special cases. It's also good that now there is enough infrastructure to deal with any amount of additional type parameters.
1 parent 432faa2 commit 1423e46

6 files changed

Lines changed: 614 additions & 646 deletions

File tree

gen/youtube3/src/cmn.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// DO NOT EDIT
33
use std::marker::MarkerTrait;
44
use std::io::{Read, Seek};
5-
use std::borrow::BorrowMut;
65

76
use oauth2;
87
use hyper;
@@ -54,7 +53,7 @@ struct JsonServerError {
5453
///
5554
/// It contains methods to deal with all common issues, as well with the ones related to
5655
/// uploading media
57-
pub trait Delegate: Clone {
56+
pub trait Delegate {
5857

5958
/// Called whenever there is an HttpError, usually if there are network problems.
6059
///
@@ -63,3 +62,8 @@ pub trait Delegate: Clone {
6362
oauth2::Retry::Abort
6463
}
6564
}
65+
66+
#[derive(Default)]
67+
pub struct DefaultDelegate;
68+
69+
impl Delegate for DefaultDelegate {}

0 commit comments

Comments
 (0)