1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

io: deprecate io.make_reader (not needed anymore)

This commit is contained in:
Delyan Angelov
2021-05-13 10:26:10 +03:00
parent 49deeac71e
commit 143c3d4bb4
11 changed files with 28 additions and 26 deletions

View File

@@ -13,6 +13,8 @@ pub interface Reader {
// (e.g. for use in struct initialisation)
// (this shouldnt need to be a thing but until coercion gets made better
// it is required)
[deprecated: 'use just `x` instead of `io.make_reader(x)`. Interfaces are now checked against all types.']
[deprecated_after: '2021-05-27']
pub fn make_reader(r Reader) Reader {
return r
}